InterviewSolution
Saved Bookmarks
| 1. |
Which of these is an incorrect Statement?(a) It is necessary to use new operator to initialize an array(b) Array can be initialized using comma separated expressions surrounded by curly braces(c) Array can be initialized when they are declared(d) None of the mentioned |
|
Answer» Right answer is (a) It is necessary to use new operator to initialize an array The best I can explain: Array can be initialized using both new and comma separated expressions surrounded by curly braces example : int arr[5] = new int[5]; and int arr[] = { 0, 1, 2, 3, 4}; |
|