0

Array

Is there any difference between C and java for using Array?

16th Oct 2016, 8:46 AM
Mizbah Uddin Ahmed
Mizbah Uddin Ahmed - avatar
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.
16th Oct 2016, 10:44 AM
Zen
Zen - avatar
+ 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};
4th Feb 2017, 4:10 PM
Sunnykant Tiwari
Sunnykant Tiwari - avatar