C Programming
Q 1 – What is the output of the following code snippet?
#include<stdio.h> _x000D_
main(){int const a = 5; _x000D_
_x000D_
a++; _x000D_
printf(“%d”,a);} A – 5
B – 6
C – Runtime error
D – Compile error
Q 2 – What is the output of the following code snippet?
#include<stdio.h> _x000D_
main(){const int a = 5; _x000D_
_x000D_
a++; _x000D_
printf("%d", a);}A – 5
B – 6
C – Runtime error
D – Compile error
Q 3 – What is the output of the below code snippet?
#include<stdio.h> _x000D_
main(){char s[]="hello", t[]="hello";if(s==t){ printf("eqaul strings");} }A – Equal strings
B – Unequal strings
C – No output
D – Compilation error