C Programming Find the output of the following program.void main(){ char *msg = "hi"; printf(msg);} Error h Garbage Value hi hi followed by garbage value Error h Garbage Value hi hi followed by garbage value ANSWER DOWNLOAD EXAMIANS APP
C Programming The address operator &, cannot act on R-values Both of the above Members of a structure Local variables Arithmetic expressions R-values Both of the above Members of a structure Local variables Arithmetic expressions ANSWER DOWNLOAD EXAMIANS APP
C Programming Which is the only function all C programs must contain? printf() getch() system() main() start() printf() getch() system() main() start() ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } None of these. H Some address will be printed Hello None of these. H Some address will be printed Hello ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#include#define prod(a,b) a*bvoid main(){ int x=3,y=4; printf("%d", prod(x+2,y-1));} None of these 11 10 12 15 None of these 11 10 12 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior Compiler time error 10 Segmentation fault/runtime crash Undefined behavior Compiler time error 10 Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP