2024 · Paper 1
Loading paper…
Loading paper…
Is A <= 50 ?
printf()main()scanf()clrscr()printf( ) function is toscanfgetchgetchegetchara = 151, b = 151, c = 160a = 151, b = 150, c = 160a = 150, b = 151, c = 165a = 151, b = 151, c = 1651 in variable c, the values stored in variable a and variable b arey is10 / 3 will giveintcharfloatwhile loop, then the difference in number of iteration willfor loop code is written to perform 5 repetitions with the condition i<=5for loop will execute only once?i--;i++;int i = 1;int i = 5;1 2 3 4 5 6 7 8 9 102 3 4 5 6 7 8 9 101 2 3 4 5 6 7 8 92 3 4 5 6 7 8 9do-while loop structure, then it willprintf ("Caterpillar \n"); is replaced by printf ("%d",a); then the output will be41 41 3 54 12 20break statement is used to exit from a/ an

$!%&
= AVG (C2 + C3 + C4 + C5)= AVG (C1, C2, C3, C4, C5)= SUM (C2:C5) / 4= SUM (C1:C5) / 5
