C Programming What will be output if you will compile and execute the following c code?#include#define max 5void main(){ int i = 0; i = max++; printf("%d", i++);} 5 6 0 Compiler Error 7 5 6 0 Compiler Error 7 ANSWER DOWNLOAD EXAMIANS APP
C Programming Consider the following code:void main(){ int a[5] = {6,8,3,9,0}, i=0; if(i != 0) { break; printf("%d", a[i]); } else printf("%d", a[i++]);}What is the output of the above program? 8 Syntax error No output Runtime error 6 8 Syntax error No output Runtime error 6 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]); }} None of these 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. 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. None of these 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. 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
C Programming What will be the output of the following program?#includevoid main(){ int i = 10; void *p = &i; printf("%d\n", (int)*p);} Undefined behavior 10 Compiler time error Segmentation fault/runtime crash Undefined behavior 10 Compiler time error Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP
C Programming Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. It should be declared. It should be initialized. None of these. It should be both declared and initialized. It should be declared. It should be initialized. None of these. ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);} Exam Veda Exam\0Veda Exam Veda None of these Exam Veda Exam\0Veda Exam Veda None of these ANSWER DOWNLOAD EXAMIANS APP