C Programming Determine output:void main(){ extern int i; i=20; printf("%d", sizeof(i));} Compiler Error 20 Linker Error 2 Compiler Error 20 Linker Error 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?int b=15, c=5, d=8, e=8, a;a = b>c ? c>d ? 12 : d>e ? 13 : 14 : 15;printf("%d", a); 12 Garbage Value 15 14 13 12 Garbage Value 15 14 13 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.5 0.25 1 9 2 0.5 0.25 1 9 2 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? Runtime error Syntax error 6 No output 8 Runtime error Syntax error 6 No output 8 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is the correct way of declaring a float pointer: float ptr; None of these float *ptr; *float ptr; float ptr; None of these float *ptr; *float ptr; ANSWER DOWNLOAD EXAMIANS APP
C Programming A preprocessor command need not start on a new line comes before the first executable statement has # as the first character need not start on the first column need not start on a new line comes before the first executable statement has # as the first character need not start on the first column ANSWER DOWNLOAD EXAMIANS APP