N Nam Lê Member Sep 21, 2021 #1 Is the size of character literals different in C and C++? A. Implementation defined B. Can't say C. Yes, they are different D. No, they are not different
Is the size of character literals different in C and C++? A. Implementation defined B. Can't say C. Yes, they are different D. No, they are not different
H Hưng Thịnh New member Sep 21, 2021 #2 Answer: c Explanation: In C++, sizeof('a') == sizeof(char) == 1. In C however, sizeof('a') == sizeof(int). Upvote 0 Downvote
Answer: c Explanation: In C++, sizeof('a') == sizeof(char) == 1. In C however, sizeof('a') == sizeof(int).