C Programming What would be the output for the following Turbo C code?#includevoid main(){ int a[]={ 1, 2, 3, 4, 5 }, *p; p=a; ++*p; printf("%d ", *p); p += 2; printf("%d", *p);} 2 4 2 3 3 4 2 2 3 3 2 4 2 3 3 4 2 2 3 3 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);} 10 Compiler time error Segmentation fault/runtime crash Undefined behavior 10 Compiler time error Segmentation fault/runtime crash Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about an array?1. The array int num[26]; can store 26 elements.2. The expression num[1] designates the very first element in the array.3. It is necessary to initialize the array at the time of declaration.4. The declaration num[SIZE] is allowed if SIZE is a macro. 1 1, 4 None of these 2, 3 2, 4 1 1, 4 None of these 2, 3 2, 4 ANSWER DOWNLOAD EXAMIANS APP
C Programming The statement int **a; is legal but meaningless None of these. is syntactically and semantically correct is illegal is legal but meaningless None of these. is syntactically and semantically correct is illegal 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 2 1 1 1 1 2 2 2 2 1 1 1 1 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming For 16-bit compiler allowable range for integer constants is ________? -32767 to 32768 -32768 to 32767 -3.4e38 to 3.4e38 -32668 to 32667 -32767 to 32768 -32768 to 32767 -3.4e38 to 3.4e38 -32668 to 32667 ANSWER DOWNLOAD EXAMIANS APP