Skip to content

Conversation

@emmaladouceur
Copy link

Not all functional, need other eyes debugging... Worked on this for a few hours without luck


1. A character array in c separates each letter into its own section. s[10] = {"h", "e", etc..}
whereas if you wanted it as a string you could simply put it as s[10] = {"hello"}. The cmputer still sees each space as 0-10, but it will recognize each section.
C doesn't have its own thing for a string, so in a sense a string is just a character array
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a string is basically a character array except it always includes a null terminator at the end ("\0").

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants