Q. What is the output of this code?
Code:#include <stdio.h>
int main() {
printf("%d", sizeof('A'));
return 0;
}
β
Correct Answer: (C)
4
Explanation: 'A' is treated as int in C, hence size is 4 bytes.