C Programming int a[5] = {1,2,3}What is the value of a[4]? 1 3 Garbage Value 0 2 1 3 Garbage Value 0 2 ANSWER DOWNLOAD EXAMIANS APP
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 6 12 24 7 It will not compile because not enough initializers are given 6 12 24 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} 6 Garbage Value 5 Compiler Error 6 Garbage Value 5 Compiler Error ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int a[] = {10,20,30,40,50}, j, *p; for(j=0; j<5; j++){ printf("%d" ,*a); a++; } p = a; for(j=0; j<5; j++){ printf("%d" ,*p); p++; }} None of These 10 20 30 40 50 10 20 30 40 50 10 20 30 40 50 Garbage Value Error None of These 10 20 30 40 50 10 20 30 40 50 10 20 30 40 50 Garbage Value Error ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program code?#includevoid main(){ int i = 10; void *p = &i; printf("%f", *(float *)p);} None of these. Error 0.000000 10 None of these. Error 0.000000 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following type definition.typedef char x[10];x myArray[5];What will sizeof(myArray) be ? (Assume one character occupies 1 byte) None of these 30 50 10 15 None of these 30 50 10 15 ANSWER DOWNLOAD EXAMIANS APP