character arrays

what are char arrays


  • char arr[] =  { 'a', 'Z', '!', '9' };

    a char array is a collection of single characters. it can be extended into a c-style string for string functions like strcpy, puts, etc by adding the termination character at the end.

    char string[] = { 'a', 'b', 'c', '\0' };
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion