is declaration of arrays is same in Java and c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

is declaration of arrays is same in Java and c++

17th Aug 2016, 3:00 PM
Abhijay Bisht
Abhijay Bisht - avatar
2 Answers
+ 1
Near enough; standard convention is to put the [] after the array name in c++ whereas Java it's often put after the type declaration.
18th Aug 2016, 4:55 AM
Ahkrin
0
small correction,IN the variable type since the [] are considered part of the type
24th Aug 2016, 4:13 AM
John Gachina
John Gachina - avatar