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? 12 6 It will not compile because not enough initializers are given 7 24 12 6 It will not compile because not enough initializers are given 7 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Let x be an array. Which of the following operations are illegal?I. ++xII. x+1III. x++IV. x*2 I, III and IV I and II I, II and III II and III III and IV I, III and IV I and II I, II and III II and III III and IV 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 1 10 -5 30 15 1 10 -5 30 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which one of the following is not a valid identifier? exam_veda _examians examians1 1examians exam_veda _examians examians1 1examians ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:#define int charvoid main(){ int i = 65; printf("sizeof(i)=%d", sizeof(i));} sizeof(i)=2 Compiler Error sizeof(i)=1 None of These sizeof(i)=2 Compiler Error sizeof(i)=1 None of These ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 7 None of These 5 6 7 None of These 5 6 ANSWER DOWNLOAD EXAMIANS APP