Array declaration doubt

if I have to declare an array A, what’s the difference between int A[] and int[] A?

hello @siddhu28.ss

to declare an array we have to do something as
int A[size];

note-> the second syntax that u have mentioned (int[] A) is not valid declaration in c++ .
but it works fine in java.

1 Like