Wednesday, February 27, 2013

C Program to display all ASCII characters

#include <stdio.h>
#include <conio.h>
void main()
{
int i=0;
clrscr();
while(i<255)
{
printf("%d\t%c",i,i);
i=i+1;
}
getch();
}

3 comments:

  1. What does this line mean?
    printf("%d\t%c",i,i);

    what is the meaning of "%d" "\t" "%c" "i,i"

    and what does getch() do? full forms please.

    ReplyDelete
  2. Here %c is actually use like %d format specifire because %c is take value which is initialized or declared so it will take value like %d integer number

    ReplyDelete