How many elements are reserved by the statement char add[] = "Jurong West";

How many elements are reserved in the following statement?
char add[] = “Jurong West”;

You question is not clear to me
Though if you meant how many elements will store in add[] character array then the answer would be 12 elements(Space is also consider as a character).
Is this your desired answer ?
Please let me know

Variable add will contains 12 bytes in the memory, in which 11 bytes will store the characters “Jurong West” and last byte will store “NULL” (’\0').

1 Like