Home > Back-end >  Small white consult array related knowledge
Small white consult array related knowledge

Time:10-24

C language charc []="China", so how much is the number of array C

CodePudding user response:

That is the \ 0 need a c [6]

CodePudding user response:

6

CodePudding user response:

reference 1st floor weixin_51793402 response:
is the \ 0 need a c [6]

Pay attention to the array subscript began from 0, so '\ 0' should be c [5]

CodePudding user response:

reference 3 building self-confidence boy reply:
Quote: refer to 1st floor weixin_51793402 response:
is the \ 0 need a c [6]

Pay attention to the array subscript began from 0, so '\ 0' should be c [5]

Oh oh oh, sorry, so is the array need to six, c [5] can be used

CodePudding user response:

Weixin_51793402
reference 4 floor response:
Quote: refer to the third floor confident boy reply:
Quote: refer to 1st floor weixin_51793402 response:
is the \ 0 need a c [6]

Pay attention to the array subscript began from 0, so '\ 0' should be c [5]

Oh oh oh, sorry, so is the array need to six, c [5] can be used right

You define the array length is 6, the length is decided by its initialization string,
  • Related