int a[5] = {1,2,3}
What is the value of a[4]?
A. 3
B. 1
C. 2
D. 0
E. Garbage Value
Answer: Option D
Solution(By Examveda Team)
In the fourth location of an array it contains 0 since default initialization will take place.
Join The Discussion
Comments ( 1 )
Related Questions on Arrays and Strings
Answer will be D. Please Correct it.
By default initialization will take place