Here you know how to convert a character into it's ASCII value.
 # A program that read any character  and display ASCII value
1.  #include<stdio.h>  
2.  #include<conio.h>  
3.    
4.  void main()  
5.  {  
6.     char n;  
7.    
8.     clrscr();  
9.     printf("Enter any character: ");  
10.    scanf("%c",&n);  
11.   
12.    printf("%d",n);  
13.    getch();  
14. }  
 
 
 
 
          
      
 
  
 
 
 
 
 
 
 
 
 
 
nice content
ReplyDelete