Output ASCII code in for loop - C Statement

C examples for Statement:for

Description

Output ASCII code in for loop

Demo Code

#include <stdio.h>
int main()/*from  ww  w  .j a  va 2 s .  c o  m*/
{
   unsigned char a;
   for(a=32;a<128;a=a+1)
      printf("%3d = '%c'\t",a,a);
   return(0);
}

Result


Related Tutorials