11/17/2015

C Program To Print Ascii Value Of Character

ASCII :- ASCII was developed from telegraph code. Its first commercial use was as a seven-bit teleprinter code promoted by Bell data services. Work on the ASCII standard began on October 6, 1960, with the first meeting of the American Standards Association's (ASA) (now the American National Standards Institute or ANSI) X 3.2 subcommittee. The first edition of the standard was published in 1963.
Full Form of ASCII Is ( American Standard Code for Information Interchange). Source Wikipedia

For ASCII Table Click Here  

See Also :- C++ Program To Print ASCII Value Of Character

Solution :-

#include<stdio.h>
void main()
{
 /*Program By Ghanendra Yadav
   Visit http://www.programmingwithbasics.com/
  */
char a;
int b;
printf("Enter The Character ");
scanf("%c",&a);
b=a;
printf("\nOutput Is =%d ",b);
}

Output:-



Ghanendra Yadav

Ghanendra Yadav

Hello, I Am Ghanendra Yadav Owner of This Blog, I am professional Blogger and Programmer. I Love Programming, Logo Making, And Banner Designing. My Highest Qualification is MCA From NIT Warangal. You Can Find Me On Social Media Through Below Link And If You Have Any Query Related To Programming And Other Subject Comment Below or You Can Mail Me I Will Try To Answer Within 24 Hours Email:- yghanendra@student.nitw.ac.in

Find me on Social Media

Facebook | Twitter | Google+ | RSS Feed

No comments:

Post a Comment