Q. What is right way to Initialization array?

  • (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 } ;
πŸ’¬ Discuss
βœ… Correct Answer: (A) int num[6] = { 2, 4, 12, 5, 45, 5 } ;

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
212
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
86%
Success Rate