Example & Tutorial understanding programming in easy ways.

Write a program to show the char by using the ASCII value.

Example-
ASCII value: 97
Character is 'a'
For each number or ASCII value we have a character that we find by the following program

program-

#include < stdio.h>
int main()
{
printf("%c",97);
printf("%c",92);
printf("%c",97);
printf("%c",91);
printf("%c",98);
printf("%c",65);
printf("%c",23);
printf("%c",78);
printf("%c",54);
printf("%c",90);
printf("%c",80);
return 0; }


output-

a

a
[
b
A
N
6
Z
P

-In this program, we just print the character for different numbers by using %c.
-So for %c(97)=a and similarly other works.




Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!