Mega Code Archive

 
Categories / C / Data Type
 

For loop with char as the loop condition

#include <stdio.h> int main() {   char ch;   for ( ch = 'a'; ch <= 'z' ; ch++ ) {        printf ( "%c", ch );   }   printf ( "\n" ); }