C++
How many b ...
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
How many bytes are reserved for the array?
char cAr1[]="ABC"
1
3
5
4
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'.
arrays
string
memory allocation
memory
Chars
Like
Login in
to like
Comment
Login in
to comment
Share
Tweet
C
++
Quiz
Login to learn C++
or
Read more about
C++ Quizzes
Follow CodeGalaxy
Mobile Beta
Send Feedback
Sign Up Now
or
Subscribe for future quizzes
Login in to like
Login in to comment