Q. Select the valid statement to declare and initialize an array.

  • (A) Int[] A = {}
  • (B) Int[] A = {1,2,3}
  • (C) Int[] A = (1,2,3)
  • (D) Int[][] A = {1,2,3}
πŸ’¬ Discuss
βœ… Correct Answer: (B) Int[] A = {1,2,3}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2204
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Chandrakant
Publisher
πŸ“ˆ
80%
Success Rate