Q. What does the following code do?
Code:#include <stdio.h>
int main() {
char c = 'A';
printf("%d", c);
return 0;
}
β
Correct Answer: (B)
Prints 65
Explanation: char 'A' has ASCII value 65, so printing it as int gives 65.