0
Array
Is there any difference between C and java for using Array?
2 Answers
+ 1
Declaring an array of 10 elements:
C:
int arr[10];
Java:
int[] arr = new int[10];
Otherwise, the synthax is pretty similar.
+ 1
Yes there is difference, and the difference is its syntax.
In C- int array[10];
In java- int[] array={1,2,3,4,5,6,7,8,9};