Q. Choose the correct way of initializing a multidimensional array below.

  • (A) int[][] code = {{1,2},{3,4,5}};
  • (B) int[2][] code = {{1,2},{3,4,5}};
  • (C) int[][] code={1,2,3,4,5};
  • (D) All of the above
πŸ’¬ Discuss
βœ… Correct Answer: (A) int[][] code = {{1,2},{3,4,5}};

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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