C Programming What is the return value of the following statement if it is placed in C program? strcmp("ABC", "ABC"); 0 33 -1 1 Compilation Error 0 33 -1 1 Compilation Error 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));} 100 g##g2 Syntax error 10012 Runtime error 100 g##g2 Syntax error 10012 Runtime error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char not; not = !2; printf("%d", not);} 0 Garbage Value 2 None of These 0 Garbage Value 2 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 0 1 2 2 1 1 2 3 None of these 1 1 2 2 0 1 2 3 0 1 2 2 1 1 2 3 None of these 1 1 2 2 0 1 2 3 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.25 0.5 9 2 1 0.25 0.5 9 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is right way to Initialize array? int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; int n{6} = { 2, 4, 12 }; int n(6) = { 2, 4, 12, 5, 45, 5 }; int num[6] = { 2, 4, 12, 5, 45, 5 }; int n{} = { 2, 4, 12, 5, 45, 5 }; ANSWER DOWNLOAD EXAMIANS APP