sail_e_0_practice_paper_1662888579527496.jpg

Arrays And Strings


What is right way to Initialize array?
Options:
A. int num[6] = { 2, 4, 12, 5, 45, 5 };
B. int n{} = { 2, 4, 12, 5, 45, 5 };
C. int n{6} = { 2, 4, 12 };
D. int n(6) = { 2, 4, 12, 5, 45, 5 };

 Next Question
Answer: Option A

Submit Solution

Your email address will not be published. Required fields are marked *



sail_e_0_practice_paper_1662888579527496.jpg

More Questions on This Topic :

sail_e_0_practice_paper_1662888579527496.jpg
sail_e_0_practice_paper_1662888579527496.jpg