Sunday, 15 April 2012

java - What is the difference between []int and int[] -



java - What is the difference between []int and int[] -

this question has reply here:

difference between int[] array , int array[] 23 answers

when want implement function in c++ , if matters receive int array in next cases?

void fn1(int []a) { a[0] = 1; } void fn2(int a[]) { a[0] = 1; }

in java, there no semantic difference.

in c++, first syntax invalid.

java c++ arrays

No comments:

Post a Comment