C++ Program to Find ASCII value of a character

Are you looking to know about the “C++ Program to Find ASCII value of a character“? If yes then you are in the correct tutorial. In this tutorial, I am going to teach the possibilities to achieve this task successfully.

C++ Program to Find ASCII value of a character

C++ Program to Find ASCII value of a character

Source Code

#include<iostream.h>                
#include<conio.h>
void main()
{
clrscr();
char ch,c;
int cha;
cout<<“Enter a character:”;
cin>>ch;
cha=ch;
cout<<“nASCII value of “<<ch<<” is “<<cha;
c=ch+1; cha=c;
cout<<“nAdding one to the character:”<<“nASCII value of “<<c<<” is “<<cha;
getch();
}

Final Words

We hope this article helps you to know about the “C++ Program to Find ASCII value of a character“. If you have any doubts regarding this topic please ask us via the comment section. We will help you. Share this article with other C/C++ developers to help them.

Share on:

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Diksha. Here, I post about programming to help developers.

Leave a Comment