C++
If while p ...
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
If while performing array initialization by POD type elements there are fewer elements than the declared array size like, for example, in the following code:
int v[5] = {1, 2, 3};
then:
All other elements will be set to 0
Compilation error will occur
Values of all other elements depend on the compiler
All other elements will not be initialized
Explanation
Get an explanation when it's available:
Subscribe
initialization
arrays
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