C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 7 It will not compile because not enough initializers are given 24 12 6 7 It will not compile because not enough initializers are given 24 12 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of following program code?#include int main(void){ char p; char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8}; p = (buf + 1)[5]; printf("%d", p); return 0;} None of these 5 Error 6 9 None of these 5 Error 6 9 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following code?void main(){ int a[10]; printf("%d %d", a[-1], a[12]);} 0 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile Garbage value 0 0 0 Garbage vlaue Garbage Value 0 Garbage Value Code will not compile Garbage value 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the output of the following statements?for(i=10; i++; i<15) printf("%d ", i); Infinite loop 10 11 12 13 14 None of these 9 10 11 12 13 10 11 12 13 14 15 Infinite loop 10 11 12 13 14 None of these 9 10 11 12 13 10 11 12 13 14 15 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 -5 1 30 15 10 -5 1 30 15 10 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 0 2 1 0 0 1 3 1 0 0 1 3 0 0 0 1 2 0 0 0 0 2 1 0 0 1 3 1 0 0 1 3 0 0 0 1 2 0 ANSWER DOWNLOAD EXAMIANS APP