click on this link......

LinkGrand.com

Saturday, 22 December 2012

Write a program to find ascii code of a given character

#include<stdio.h>
#include<conio.h>
/* To find ASCII code of a character */

Void main()
{
                char ch;
                clrscr();
               printf("Enter a character:");
               scanf("%c",&ch);
               printf("ASCII code: %d",ch);
              getch();
 }
 

No comments:

Post a Comment