Search & Find out

Thursday, December 3, 2009

character to it's ASCII value

#include "stdio.h"
#include "conio.h"
void main()

{
  char n;
  clrscr();

  printf("Enter a character to get ASCII value \n\n");
  scanf("%c",&n);
 
  printf("\nThe ASCII value for the charcter %c is %d",n,n);

    getch();
 }



Download the executable (.exe)  file for this program..
download

0 comments:

Post a Comment

 

My Blog List

Term of Use