C Programming What will be the output of the following program code?main(){ static int var = 5; printf("%d ", var--); if(var) main();} Compilation Error 5 4 3 2 1 Infinite Loop None of these 5 5 5 5 5 Compilation Error 5 4 3 2 1 Infinite Loop None of these 5 5 5 5 5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment:for(c=1, sum=0; c <= 10; c++){ scanf("%d", &x); if( x < 0 ) continue; sum += x;}What would be the value of sum for the input 1, -1, 2, -2, 3, -3, 4, -4, 5, -5 10 15 1 30 -5 10 15 1 30 -5 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=0; for(;i++;printf("%d", i)); printf("%d", i);} 1 11 12 Error 1 11 12 Error ANSWER DOWNLOAD EXAMIANS APP
C Programming If the two strings are identical, then strcmp() function returns -1 true None of these 0 1 -1 true None of these 0 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What does the following declaration mean?int (*ptr)[10]; ptr is array of pointers to 10 integers ptr is an pointer to array ptr is an array of 10 integers ptr is a pointer to an array of 10 integers ptr is array of pointers to 10 integers ptr is an pointer to array ptr is an array of 10 integers ptr is a pointer to an array of 10 integers ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i=-1, j=-1, k=0, l=2, m; m = i++ && j++ && k++ || l++; printf("%d %d %d %d %d", i, j, k, l, m);} 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 0 0 1 3 0 0 0 1 3 1 0 0 1 2 0 0 0 0 2 1 ANSWER DOWNLOAD EXAMIANS APP