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 10 Segmentation fault/runtime crash Compiler time error Undefined behavior 10 Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following program fragment, and choose the correct onevoid main(){ int a, b = 2, c; a = 2 * (b++); c = 2 * (++b);} a = 3, c = 8 b = 4, c = 6 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 a = 3, c = 8 b = 4, c = 6 a = 4, c = 8 b = 3, c = 6 a = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be printed after compiling and running the following code?main() { char *p; printf("%d %d",sizeof(*p), sizeof(p));} 2 2 1 1 1 2 2 1 2 2 1 1 1 2 2 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ int i=065, j=65; printf("%d %d", i, j);} 65 65 53 65 Syntax error 065 65 053 65 65 65 53 65 Syntax error 065 65 053 65 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 );} The loop will run infinitely many times. A run time error will be generated. There will be a compilation error reported. Prints the value of 0 one time only. The program will not enter into the loop. The loop will run infinitely many times. A run time error will be generated. There will be a compilation error reported. Prints the value of 0 one time only. The program will not enter into the loop. ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following is not a correct variable type? int char float real double int char float real double ANSWER DOWNLOAD EXAMIANS APP