Originally Posted by
caliber005
hi all!
certain values like value of 11,12,13 is not seen in the output. what colud be the reason .
Some characters have no printable representation. Try using isprint() from ctype.h, which returns true for any printable character, including space:
Code:
#include<stdio.h>
#include<conio.h>
#include <ctype.h>
main()
{
int iNum;
clrscr();
printf("ASCII CHART-->");
for(iNum=0;iNum<=255;iNum++)
if (isprint(iNum))
printf("%d=%c\t",iNum.iNum);
else
printf("%d (unprintable)\t");
getch();
return 0;
}