C MCQ
C MCQ
C MCQ
MCQ on C programming
a. 3
b. 10
c. 25
d. 22
a. 22
b. 21
c. 01
d. 02
a. 26
b. 25
c. 20
d. 0
#include <stdio.h>
int main(){
int arr[]={1,2,3,4,5,6,7,8,9,0,1,2,5}, *ip=arr+4;
printf(“%d\n”, ip[1]);
return 0;
The number that will be displayed on execution of the program is _______
a. 6
b. 7
c. 8
d. 0
a. 10
b. 12
c. 15
d. 20
#include <stdio.h>
int main()
int y = 10000;
int y = 34;
printf("Hello World! %d\n", y);
return 0;
#include <stdio.h>
int main()
int main = 3;
printf("%d", main);
return 0;
}
a) It will cause a compile-time error
b) It will cause a run-time error
c) It will run without any error and prints 3
d) It will experience infinite looping