C Programming Determine output:void main(){ int const *p=5; printf("%d", ++(*p));} Garbage Value 5 Compiler Error 6 Garbage Value 5 Compiler Error 6 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of this program on an implementation where int occupies 2 bytes?#include void main(){ int i = 3; int j; j = sizeof(++i + ++i); printf("i=%d j=%d", i, j);} i=4 j=2 i=3 j=2 i=5 j=2 the behavior is undefined i=4 j=2 i=3 j=2 i=5 j=2 the behavior is undefined ANSWER DOWNLOAD EXAMIANS APP
C Programming Comment on the following pointer declaration?int *ptr, p; ptr and p both are not pointers to integer. ptr is a pointer to integer, p is not. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ptr and p both are not pointers to integer. ptr is a pointer to integer, p is not. ptr is pointer to integer, p may or may not be. ptr and p, both are pointers to integer. ANSWER DOWNLOAD EXAMIANS APP
C Programming Find the output of the following program.void main(){ printf("%d, %d", sizeof(int *), sizeof(int **));} 4, 4 2, 4 2, 2 2, 0 0, 2 4, 4 2, 4 2, 2 2, 0 0, 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming C preprocessor All of these Takes care of macros Takes care of include files Acts before compilation Takes care of conditional compilation All of these Takes care of macros Takes care of include files Acts before compilation Takes care of conditional compilation 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 a = 4, c = 8 b = 3, c = 6 b = 4, c = 6 a = 4, c = 6 a = 3, c = 8 a = 4, c = 8 b = 3, c = 6 b = 4, c = 6 a = 4, c = 6 ANSWER DOWNLOAD EXAMIANS APP