C Programming int a[5] = {1,2,3}What is the value of a[4]? 0 Garbage Value 1 3 2 0 Garbage Value 1 3 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 3, 2, 15 1, 2, 5 2, 1, 15 2, 3, 20 3, 2, 15 1, 2, 5 2, 1, 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:#include void main(){ char *p = NULL; char *q = 0; if(p) printf(" p "); else printf("nullp"); if(q) printf("q"); else printf(" nullq");} Depends on the compiler x nullq where x can be p or nullp depending on the value of NULL nullp nullq p q Depends on the compiler x nullq where x can be p or nullp depending on the value of NULL nullp nullq p q ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ struct xx { int x=3; char name[] = "hello"; }; struct xx *s = malloc(sizeof(struct xx)); printf("%d", s->x); printf("%s", s->name); } Compiler Error 3 hello Linking error None of these Compiler Error 3 hello Linking error None of these ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int array[10]; int *i = &array[2], *j = &array[5]; int diff = j-i; printf("%d", diff);} 6 Error Garbage value 3 6 Error Garbage value 3 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]);} Code will not compile Garbage vlaue Garbage Value 0 Garbage Value 0 0 Garbage value 0 Code will not compile Garbage vlaue Garbage Value 0 Garbage Value 0 0 Garbage value 0 ANSWER DOWNLOAD EXAMIANS APP