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 What is the maximum number of dimensions an array in C may have? 20 Theoratically no limit. The only practical limits are memory size and compilers. 8 50 2 20 Theoratically no limit. The only practical limits are memory size and compilers. 8 50 2 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine output of the following program code.#includevoid main(){ int a, b=7; a = b<4 ? b<<1 : ++b>4 ? 7>>1 : a; printf("%d %d", a, b);} 7 3 8 3 None of these 3 8 3 7 7 3 8 3 None of these 3 8 3 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ char *p; printf("%d %d", sizeof(*p), sizeof(p));} 2 1 1 2 2 2 1 1 2 1 1 2 2 2 1 1 ANSWER DOWNLOAD EXAMIANS APP
C Programming Size of the array need not be specified, when Initialization is a part of definition It is a declaratrion All of these It is a formal parameter Initialization is a part of definition It is a declaratrion All of these It is a formal parameter ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are correct about the program below?#includevoid main(){ int size, i; scanf("%d", &size); int arr[size]; for(i=1; i<=size; i++) { scanf("%d", arr[i]); printf("%d", arr[i]); }} The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. None of these The code is erroneous since the statement declaring array is invalid. The code is erroneous since the values of array are getting scanned through the loop. The code is correct and runs successfully. The code is erroneous since the subscript for array used in for loop is in the range 1 to size. None of these The code is erroneous since the statement declaring array is invalid. The code is erroneous since the values of array are getting scanned through the loop. ANSWER DOWNLOAD EXAMIANS APP