Computer Science, asked by Afsha2222, 1 year ago

int a[5] = {1,2,3}
What is the value of a[4]?
A.3
B.1
C.2
D.0

Answers

Answered by ajmal64
2
Answer is option D. 0
Answered by shahrukhgraveiens
0

For the given multiple choice question answer is zero. i.e. correct option is d.

In the fourth location of an array it contains 0 since default initialization will take place.

Answer : (D) i.e. zero.

Learn more about array-

https://brainly.in/question/1849908?msp_srt_exp=4

https://brainly.in/question/49397669

https://brainly.in/question/5900836?msp_srt_exp=4

#SPJ3

Similar questions