C Programming What is the output of the following program?#includeint c[10] = {1,2,3,4,5,6,7,8,9,10}; main(){ int a, b=0; for(a=0;a<10;++a) if(c[a]%2 == 1) b+=c[a]; printf("%d", b);} 20 24 25 30 None of these 20 24 25 30 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program? #include\ int main(){ extern int i; i = 20; printf("%ld ", sizeof(i)); return 0; } 4 2 Linker Error : Undefined symbol 'i' Depends on the Compiler 4 2 Linker Error : Undefined symbol 'i' Depends on the Compiler ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?#includevoid main(){ int s=0; while(s++<10) { if(s<4 && s<9) continue; printf("%dt", s); }} None of these 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 4 5 6 7 8 9 10 1 2 3 10 None of these 1 2 3 4 5 6 7 8 9 4 5 6 7 8 9 4 5 6 7 8 9 10 1 2 3 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=1;if("%d=hello", a);} 1 complier error no error no output 0 1 complier error no error no output 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the correct statement.I. The scope of a macro definition need not be the entire program.II. The scope of a macro definition extends from the point of definition to the end of the file.III. New line is a macro definition delimiter.IV. A macro definition may go beyond a line. I, II, III and IV II, III and IV I, II and III II and III I and II I, II, III and IV II, III and IV I, II and III II and III I and II ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the given program?#includevoid main(){ int i=10; printf("i=%d", i); { int i=20; printf("i=%d", i); i++; printf("i=%d", i); } printf("i=%d", i);} 10 20 21 10 10 10 11 11 10 20 21 21 10 20 21 20 10 20 21 10 10 10 11 11 10 20 21 21 10 20 21 20 ANSWER DOWNLOAD EXAMIANS APP