What will be the output of the following

1.9 What will be the output of the following?
main() {
int a = ‘A’;
printf(“%d”, a);
A) 65
B) A
C) a
D) the program will not compile as an integer variable is assigned a character constant.


Leave a Reply