• Advertisement

Archived

This topic is now archived and is closed to further replies.

Question on arrays way number works

This topic is 5301 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

say with: int numbers[10]; i would be able to enter 10 numbers from 0 to 9 but with: char text[5]="here"; it will only accept the four letters not five. but with: char text2[5]; i can do text2[0]=''a'' ..etc ..etc ..etc text2[4]=''e'' why is this?

Share this post


Link to post
Share on other sites
Advertisement

  • Advertisement