Telegram Group 🔥🔥🔥
Get answers in minutes
Questions answered :
48
/50
Answer verified
Which of the following is the correct way to define and initialise an array of 4 integers
int[] a = {25, 30, 40, 5};
int[] a;
a = new int[3];
a[0] = 25;
a[1] = 30;
a[2] = 40;
a[3] = 5;
int[] a;
a = new int{25, 30, 40, 5};
int[] a;
a = new int[4]{25, 30, 40, 5};
int[] a;
a = new int[4];
a[0] = 25;
a[1] = 30;
a[2] = 40;
a[3] = 5;
🗓 Jul 13, 2021
votes
Andrea
🌐 India
I'm in exam, can any one give the solution for this question
votes
Courtney
🌐 India
Hello, please post an solution as well
Was your question answered?
Thanks for the feedback! ✅
Want to get famous? 📸
Answer question and get 🤩 high-lighted on our homepage.