0
How does array work when [] is empty
How does array work when [] is empty Like char e[] = "char array"; How many characters are allowed?
5 ответов
+ 4
When [] subscript is empty
It automatically fills the space by counting the no. Of elements initialized within the quotes.
And since it is collection of array
Which means it forms string
So at last a null '\0' character is added
And every character is held with subsequent index starting with 0 for the first character.
+ 2
It means
In contiguous form
Like
0 1 2 ....and so on
+ 1
Thank you.
I thought so.
+ 1
You're welcome🥰
0
Subsequent index means what?