C++ Program to Find ASCII Value of a Character

38
515

C++ Program to Find ASCII Value of a Character
In this example, you will learn to find the ASCII value of a character in C++.

A character variable holds ASCII value (an integer number between 0 and 127) rather than that character itself in C programming. That value is known as the ASCII value.
For example, the ASCII value of ‘A’ is 65.

What this means is that, if you assign ‘A’ to a character variable, 65 is stored in that variable rather than ‘A’ itself.

Table of Contents

Programe :

#include <iostream>
using namespace std;

int main()
{
char c;
cout << “Enter a character: “;
cin >> c;
cout << “ASCII Value of ” << c << ” is ” << int(c);
return 0;
}

OutPut :

Enter a character: p
ASCII Value of p is 112

38 COMMENTS

  1. I am extremely impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it’s rare to see a nice blog like this one these days.

  2. My partner and I absolutely love your blog and find a lot of your post’s to be exactly what I’m looking for. Do you offer guest writers to write content to suit your needs? I wouldn’t mind creating a post or elaborating on a few of the subjects you write related to here. Again, awesome web log!

  3. Its like you read my mind! You seem to understand so much approximately this, like you wrote the ebook in it or something. I think that you could do with some p.c. to force the message house a bit, however other than that, this is magnificent blog. A great read. I’ll definitely be back.

  4. There’s a huge range of fun and exciting promotions available at 888poker. Look out for our exclusive promo codes and use them to enjoy cash bonuses and tournament tickets on the house! Enjoy a special welcome promotion when you join 888poker, as well as monthly offers and unique opportunities to win high-end gadgets, coveted tournament tickets, poker packages, and so much more. In order to get $88 no deposit 888 poker bonus, you need to go through several easy steps. In order to claim a no deposit bonus at 888 Poker you need to pass a proper registration procedure at 888. If you want to find out the answer on a simple question ‘how to get free money on 888 poker’, you need to follow some easy steps. This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.
    http://www.hn-hanc.co.kr/bbs/board.php?bo_table=free&wr_id=665448
    Overview: The Chico Poker Network has become increasingly popular over the past few months due to its recreational player infested cash games and fantastic appeal to the SNG MTT grinders. At this time (March, 2015), the Chico Poker Network is the 3rd most popular network for USA residents. The network is a great (and trustworthy) option for any player, especially MTT and SNG grinders. There are four network owned skins, two of which are available to US players: BetOnline and Sportsbetting. New players can receive a 200% initial deposit bonus (Up to $1,000; ie. deposit $100, get $200 free). The cashier function on the website and app is where you’ll move money in and out. It’s easy to use and lists all of the available options. Deposits process instantly (minimum $10), while withdrawals take some time for internal processing.

  5. Greetings I am so grateful I found your web site, I really found you by error, while I was searching on Bing for something else, Regardless I am here now and would just like to say many thanks for a incredible post and a all round enjoyable blog (I also love the theme/design), I dont have time to go through it all at the minute but I have book-marked it and also added in your RSS feeds, so when I have time I will be back to read a lot more, Please do keep up the fantastic b.

  6. When opting for PhD chapters writing service or complete PhD thesis writing service, please note that our service comes with a guarantee of zero grammar error writing and plagiarism of less than 15% when tested in any software. A thesis is an extremely formulaic type of writing.Every thesis follows pretty much the same organizational structure. We at PhDstatistics, lay down worthwhile efforts to write a discussion chapter answering the research question in attention. The general services included in this section are: The second form of literature review, which is the focus of this chapter, constitutes an original and valuable work of research in and of itself (Paré et al., 2015). Rather than providing a base for a researcher’s own work, it creates a solid starting point for all members of the community interested in a particular area or topic (Mulrow, 1987). The so-called “review article” is a journal-length paper which has an overarching purpose to synthesize the literature in a field, without collecting or analyzing any primary data (Green, Johnson, & Adams, 2006).
    https://ragingbookmarks.com/story15192683/how-to-write-a-compare-and-contrast-thesis
    The field of biomedical engineering opens up a universe of expert chances. An Individual in the biomedical engineering career path work in the field of engineering as well as medicine, in order to find out solutions to common problems of the two fields. The biomedical engineering job opportunities are to collaborate with doctors and researchers to develop medical systems, equipment, or devices that can solve clinical problems. Here we will be discussing jobs after biomedical engineering, how to get a job in biomedical engineering, biomedical engineering scope, and salary.  This is very interesting content! I have thoroughly enjoyed reading your points and have come to the conclusion that you are right about many of them. You are great. PhD Thesis Writing Service

LEAVE A REPLY

Please enter your comment!
Please enter your name here