How many bytes are reserved for the array?
char cAr1[]="ABC"
Explanation
Since "ABCD" is a string literal, 4 bytes are reserved for an array.
3 for the characters 'A' 'B' 'C' and one for the null character '\0'.

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes