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 25 30 24 None of these 20 25 30 24 None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int c[] = {2.8,3.4,4,6.7,5}; int j, *p=c, *q=c; for(j=0;j<5;j++){ printf(" %d ", *c); ++q; } for(j=0;j<5;j++){ printf(" %d ", *p); ++p; }} 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 3 4 6 5 2 3 4 6 5 2 2 2 2 2 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 2.8 2.8 2.8 2.8 2.8 2.8 3.4 4 2 3 4 6 5 2 3 4 6 5 2 2 2 2 2 2 3 4 6 5 2.8 3.4 4 6.7 5 2.8 3.4 4 6.7 ANSWER DOWNLOAD EXAMIANS APP
C Programming A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as None of these. int(*p(char *))[] int (*p) (char *)[] int *p(char *)[] None of these. int(*p(char *))[] int (*p) (char *)[] int *p(char *)[] ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? 6 8 Syntax error Runtime error No output 6 8 Syntax error Runtime error No output ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?void main(){ int a, b, c, d; a = 3; b = 5; c = a, b; d = (a, b); printf("c=%d d=%d", c, d);} c=3 d=3 c=5 d=3 c=5 d=5 c=3 d=5 c=3 d=3 c=5 d=3 c=5 d=5 c=3 d=5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 b = 4, c = 6 a = 3, c = 8 ANSWER DOWNLOAD EXAMIANS APP