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.5 9 1 2 0.25 0.5 9 1 2 0.25 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 1 2 1 1 2 1 2 2 1 2 1 1 2 1 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ static char *s[] = {"black", "white", "yellow", "violet"}; char **ptr[] = {s+3, s+2, s+1, s}, ***p; p = ptr; ++p; printf("%s",*--*++p + 3); } ow ck te et ow ck te et 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 int *p(char *)[] int (*p) (char *)[] None of these. int(*p(char *))[] int *p(char *)[] int (*p) (char *)[] None of these. int(*p(char *))[] ANSWER DOWNLOAD EXAMIANS APP
C Programming The output of the following program is:#define f(g,g2) g##g2void main(){ int var12=100; printf("%d", f(var,12));} g##g2 10012 Runtime error Syntax error 100 g##g2 10012 Runtime error Syntax error 100 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} 3 2 1 0 infinity loop 3 2 1 no output 3 2 1 0 infinity loop 3 2 1 no output ANSWER DOWNLOAD EXAMIANS APP