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:A
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
Explanation: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};