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 Error 10..10 0 10..50 Error 10..10 0 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");} x nullq where x can be p or nullp depending on the value of NULL nullp nullq Depends on the compiler p q x nullq where x can be p or nullp depending on the value of NULL nullp nullq Depends on the compiler p q 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);} 0.000000 Error None of these. 10 0.000000 Error None of these. 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... stderr string Data file stdin no such function in 'C'. stderr string Data file stdin no such function in 'C'. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);} 12 11 13 Compilation error 14 12 11 13 Compilation error 14 ANSWER DOWNLOAD EXAMIANS APP
C Programming If the two strings are identical, then strcmp() function returns -1 1 true None of these 0 -1 1 true None of these 0 ANSWER DOWNLOAD EXAMIANS APP