Q122
What will be the output of the following C++ code? #include int main(int argc, char const *argv[]) char a = 'a'; printf("%d ", (int)sizeof(a)); return 0;
A.
Output in C is 1 and in C++ is 4
B.
Output in C is 4 and in C++ is 1
C.
Output in C is 1 and in C++ is 1
AnswerD.
Output in C is 4 and in C++ is 4
Answer: Option C
Solution
Answer: Option C
No explanation is given for this question Let's Discuss on Board