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

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

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

Latest Videos

Latest Test Papers