Nothing in Square Brackets in Arrays? | SoloLearn: Learn to code for FREE!

0

Nothing in Square Brackets in Arrays?

What would happen if you put nothing in the square brackets?

7/11/2017 12:25:40 AM

A_Coders

1 Answer

New Answer

0

declaring an array ypu can write empty square brackets and define the array (automatic size calculation) I'm not sure but probably if ypu write empty square brackets for accesing an array will throw compilstion error, memory access violation or show the first elemnt of the array