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 );} 1 0.25 0.5 2 9 1 0.25 0.5 2 9 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); }} 4 5 6 7 8 9 10 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 None of these 1 2 3 10 4 5 6 7 8 9 10 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 None of these 1 2 3 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 1 1 2 1 1 2 2 2 1 1 2 1 1 2 2 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?void main(){ int a=10, b=20; char x=1, y=0; if(a,b,x,y){ printf("EXAM"); } } exam is printed Compiler Error XAM is printed Nothing is printed exam is printed Compiler Error XAM is printed Nothing is printed ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following comments about the ++ operator are correct? It cannot be applied to an expression It is a unary operator All of these It associates from the right The operand can come before or after the operator It cannot be applied to an expression It is a unary operator All of these It associates from the right The operand can come before or after the operator 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 0 10 Syntax error Infinite loop 0123456789 0 10 Syntax error ANSWER DOWNLOAD EXAMIANS APP