In-Depth Analysis of GESP Certification C++ Level 3 Questions (True/False) – September 2025
1、Expression sizeof(‘a’) always results in 1 , because ‘a’ is a character. 【Analysis】 Answer:× Key Point:Type of character literal andsizeof behavior Analysis: InC++, the type of character literal‘a’ ischar,sizeof(char) guarantees1 However inC, character literals areint type,sizeof(‘a’) may be4 Since the question clearly states it isC++, the result is indeed1, but the statement“always“ is inaccurate, becauseC … Read more