Question PRG-C-0026
EasyWhat is the output of this program?
#include <stdio.h>
int main() {
char c = 'A' + 2;
printf("%c", c);
return 0;
}
- A.
B
- B.
C
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
C question
What is the output of this program?
#include <stdio.h>
int main() {
char c = 'A' + 2;
printf("%c", c);
return 0;
}
B
C
Sign up free to see the answer and a step-by-step explanation.
A2
67