C Programming Find the output of the following program.#includevoid main(){ int y=10; if(y++>9 && y++!=11 && y++>11) printf("%d", y); else printf("%d", y);} Compilation error 12 14 13 11 Compilation error 12 14 13 11 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following function is more appropriate for reading in a multi-word string? printf() scanf() None of these puts() gets() printf() scanf() None of these puts() gets() ANSWER DOWNLOAD EXAMIANS APP
C Programming short testarray[4][3] = { {1}, {2,3}, {4,5,6}};printf("%d", sizeof(testarray));Assuming a short is two bytes long, what will be printed by the above code? 24 12 It will not compile because not enough initializers are given 7 6 24 12 It will not compile because not enough initializers are given 7 6 ANSWER DOWNLOAD EXAMIANS APP
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);} 3 4 3 3 2 3 2 2 2 4 3 4 3 3 2 3 2 2 2 4 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);} Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior ANSWER DOWNLOAD EXAMIANS APP
C Programming Determine Output:void main(){ int i; printf("%d", scanf("%d", &i)); // value 10 is given as input here} 1 10 Garbage Value None of These 1 10 Garbage Value None of These ANSWER DOWNLOAD EXAMIANS APP