C examples for Data Type:char
Also have it show the array contents.
#include <stdio.h> #define SIZE 26 /*from w w w . j a v a2 s .c o m*/ int main( void ) { char lcase[SIZE]; int i; for (i = 0; i < SIZE; i++) lcase[i] = 'a' + i; for (i = 0; i < SIZE; i++) printf("%c", lcase[i]); printf("\n"); return 0; }