C Programming What will be printed when this program is executed?int f(int x){ if(x <= 4) return x; return f(--x);}void main(){ printf("%d ", f(7)); } Syntax error Runtime error 4 1 2 3 4 4 5 6 7 Syntax error Runtime error 4 1 2 3 4 4 5 6 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 3, 2, 15 2, 1, 15 1, 2, 5 2, 3, 20 3, 2, 15 2, 1, 15 1, 2, 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 30 10 1 -5 15 30 10 1 -5 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function scanf() returns ......... 1 0 ASCII value of the input read. The actual values read for each argument. The number of successful read input values. 1 0 ASCII value of the input read. The actual values read for each argument. The number of successful read input values. ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; 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 No output 8 Syntax error 6 Runtime error No output 8 Syntax error 6 ANSWER DOWNLOAD EXAMIANS APP