Computer Science, asked by himanshigupta2828, 8 months ago


What will sizeof(a) return?
char a[] =

Answers

Answered by kurmasrinish2cherry
5

Answer:In C++ the size of the character literal is char. So in C the sizeof('a') is 4 for 32bit architecture, and CHAR_BIT is 8. ... But the sizeof(char) is one byte for both C and C++.

Explanation: plz mark as a brainliest answer

Answered by syed2020ashaels
0

Answer:

The size it will return is 32 bit

Explanation:

The notation char, which stands for character and denotes the size of the literal, is the word that is utilised for the purpose of expressing the size of the character literal in C++. This term is used for the goal of expressing the size of the literal. In addition, the length of the literal may be determined by looking at this notation. Despite the fact that the value of CHAR BIT is eight, the value of sizeof('a') in C for a 32-bit architecture is four.... This is a direct consequence of the point that came before this one. Despite this, the sizeof(char) function in C or C++ only uses a single byte of RAM whenever it is called. This is the case regardless of how many times it is called. This takes happen regardless of how often the function is relied upon.

See more:

https://brainly.in/question/10476391

#SPJ3

Similar questions