C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Compiler time error 10 Undefined behavior Segmentation fault/runtime crash Compiler time error 10 Undefined behavior Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP
C Programming The declarationint (*p) [5];means p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ p is a pointer to a 5 elements integer array. p is one dimensional array of size 5, of pointers to integers. None of these. The same as int *p[ ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} Garbage Value hi followed by garbage value hi Error h Garbage Value hi followed by garbage value hi Error h ANSWER DOWNLOAD EXAMIANS APP
C Programming char* myfunc(char *ptr){ ptr+=3; return(ptr);}void main(){ char *x, *y; x = "EXAMVEDA"; y = myfunc(x); printf("y=%s", y);}What will be printed when the sample code above is executed? y=EDA y=EXAMIANS y=MVEDA y=VEDA y=AMVEDA y=EDA y=EXAMIANS y=MVEDA y=VEDA y=AMVEDA 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 Compilation error 13 12 11 14 Compilation error 13 12 ANSWER DOWNLOAD EXAMIANS APP
C Programming The function sprintf() works like printf(), but operates on .......... no such function in 'C'. Data file stdin string stderr no such function in 'C'. Data file stdin string stderr ANSWER DOWNLOAD EXAMIANS APP