Q. What is the output of the following code?
Code:#include <stdio.h>
int main() {
char ch = 'A' + 2;
printf("%c", ch);
return 0;
}
β
Correct Answer: (B)
C
Explanation: 'A' + 2 is 'C' as it adds 2 to ASCII value of A.