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);} 30 25 None of these 24 20 30 25 None of these 24 20 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); Infinite loop 0123456789 Syntax error 0 10 Infinite loop 0123456789 Syntax error 0 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 2 3 3 3 4 2 4 2 3 2 2 3 3 3 4 2 4 2 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Use of functions Makes the debugging task easier. Enhances the logical clarity of the program. Helps to avoid repeated programming across programs. All of these Helps to avoid repeating a set of statements many times. Makes the debugging task easier. Enhances the logical clarity of the program. Helps to avoid repeated programming across programs. All of these Helps to avoid repeating a set of statements many times. ANSWER DOWNLOAD EXAMIANS APP
C Programming If ASCII value of 'x' is 120, then what is the value of the H, ifH = ('x' – 'w' ) / 3; 1 3 0 2 1 3 0 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the value of sum after the following program is executed?void main(){ int sum=1, index = 9; do{ index = index – 1; sum *= 2; }while( index > 9 );} 0.25 1 2 9 0.5 0.25 1 2 9 0.5 ANSWER DOWNLOAD EXAMIANS APP