Q44
What will be the output of the following program in both C and C++? #include int main(int argc, char const *argv[]) 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
AnswerC.
Output in C is 1 and in C++ is 1
D.
Output in C is 4 and in C++ is 4
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board