c++ - What kind of array declaration is this? -


after solving practice question,i red coder's solution.today saw array declaration have never seen before. declared array

 char a['  '],b['  ']; 

please let me know ?

p.s- can duplicate question.i tried searching not find it(possibly because didn't know for),if duplicate please close question , give me link.

single quotes character constant.

  • ' ' space, 32 in ascii.
  • ' ' embedded tab character 9 in ascii
  • ' ' 2 spaces, implementation-defined int value.

in case, can supply expression integer type (or convertible one) inside [] of array declaration. end sizeof a being 32, or 9, or implementation-defined value.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -