C Programming Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } Syntax error 0x1234ABCD, 10, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 0x1234ABCD, 10 Syntax error 0x1234ABCD, 10, 10 Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 0x1234ABCD, 10 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);} Compiler time error Undefined behavior Segmentation fault/runtime crash 10 Compiler time error Undefined behavior Segmentation fault/runtime crash 10 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output:void main(){ int i=0, j=1, k=2, m; m = i++ || j++ || k++; printf("%d %d %d %d", m, i, j, k);} 1 1 2 3 1 1 2 2 None of these 0 1 2 2 0 1 2 3 1 1 2 3 1 1 2 2 None of these 0 1 2 2 0 1 2 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of given program?#includevoid main(){int a=3;for(;a;printf("%d ", a--);} infinity loop 3 2 1 no output 3 2 1 0 infinity loop 3 2 1 no output 3 2 1 0 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); } None of these Compiler Error 3 hello Linking error None of these Compiler Error 3 hello Linking error ANSWER DOWNLOAD EXAMIANS APP
C Programming What is the right choice, if the following loop is implemented?void main(){ int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 );} Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. Prints the value of 0 one time only. A run time error will be generated. The loop will run infinitely many times. There will be a compilation error reported. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP