Which of the following is correct initialization of 1-D array ?
A. Int marks[ ] = {90, 70, 77};
B. Int [ ] marks = {90, 70, 77};
C. Int marks} ] = {90; 70; 77}
D. Both (A) and (B)
Answer:B
Which of the following is correct initialization of 1-D array ?
A. Int marks[ ] = {90, 70, 77}; B. Int [ ] marks = {90, 70, 77}; C. Int marks} ] = {90; 70; 77} D. Both (A) and (B)