Howdy, Stranger!

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


character arrays

amnaamna yahooMember Posts: 0

what are char arrays


  • pseudocoderpseudocoder Member Posts: 701 ✭✭✭
    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.