C Programming int a[5] = {1,2,3}What is the value of a[4]? 2 Garbage Value 1 0 3 2 Garbage Value 1 0 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be output after executing following code?#include# define a 10void main(){ printf("%d..", a); foo(); printf("%d", a);}void foo(){ #undef a #define a 50} 10..50 10..10 0 Error 10..50 10..10 0 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. 0.000000 Error 10 None of these. 0.000000 Error 10 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? 12 7 6 24 It will not compile because not enough initializers are given 12 7 6 24 It will not compile because not enough initializers are given ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following piece of code?for(i = 0; i<10; i++);printf("%d", i); 10 Infinite loop 0123456789 Syntax error 0 10 Infinite loop 0123456789 Syntax error 0 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=10 && y++>11) printf("%d", y); else printf("%d", y);} 11 14 12 Compilation error 13 11 14 12 Compilation error 13 ANSWER DOWNLOAD EXAMIANS APP