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 character9
in ascii' '
2 spaces, implementation-definedint
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
Post a Comment