
int A[]=new int{2,5,4,1,3}; what is the error in declaration of this

Hi Friend,
This is the wrong way of declaring an array.
Array is always declared in the following ways: 1)int arr[]=new int[5]; 2)int arr[]={1,2,3,4,5};
For more information,visit the following link:
Thanks

thank u
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.