What is the last entry in an unfilled array (C++)?
- by jwaffe
I put C++ because I'm just starting in C# and I'm not sure if there's a difference.
if you declare an array
char arr[10]
and fill in values for arr[0] through arr[8], what value will be put in arr[9]?
a space ' '? An endline '\n'? '\0'? Or is it nothing at all?
I'm asking this because I've always used tactics like this
char word[20];…