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 Undefined behavior Compiler time error Segmentation fault/runtime crash 10 Undefined behavior Compiler time error Segmentation fault/runtime crash ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#include#includevoid main(){ char str[] = "Exam\0Veda"; printf("%s", str);} None of these Exam\0Veda Exam Veda Veda Exam None of these Exam\0Veda Exam Veda Veda Exam ANSWER DOWNLOAD EXAMIANS APP
C Programming Identify the correct output of the following code:void main(){ int w=10, x=5, y=3, z=3; if( (w < x ) && (y=z++) ) printf("%d %d %d %d", w, x, y, z); else printf("%d %d %d %d", w, x, y, z);} 10 5 3 4 10 5 5 5 10 5 4 4 10 5 3 3 10 5 4 3 10 5 3 4 10 5 5 5 10 5 4 4 10 5 3 3 10 5 4 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming Which of the following statements are true after execution of the program.void main(){ int a[10], i, *p; a[0] = 1; a[1] = 2; p = a; (*p)++;} a[0] = 2 Compilation error a[1] = 2 a[0] = 3 a[1] = 3 a[0] = 2 Compilation error a[1] = 2 a[0] = 3 a[1] = 3 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output of the program ?#includevoid main(){ int a[5] = {5, 1, 15, 20, 25}; int i, j, m; i = ++a[1]; j = a[1]++; m = a[i++]; printf("%d, %d, %d", i, j, m);} 2, 3, 20 3, 2, 15 1, 2, 5 2, 1, 15 2, 3, 20 3, 2, 15 1, 2, 5 2, 1, 15 ANSWER DOWNLOAD EXAMIANS APP
C Programming What will be the output?main() { char *p; p = "Hello"; printf("%cn",*&*p); } Hello H None of these. Some address will be printed Hello H None of these. Some address will be printed ANSWER DOWNLOAD EXAMIANS APP