character arrays - Programmers Heaven

Howdy, Stranger!

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


character arrays

amnaamna yahooPosts: 0Member

what are char arrays


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