C PROGRAMING ANSWER AND EXPLAIN BOTH 1 What is the ASCII val

C++ PROGRAMING ANSWER AND EXPLAIN BOTH!

1. What is the ASCII value of the character \'1\'?

2. What is the ASCII value of the character \'c\'?

Solution

The American Standard Code for Information Interchange or ASCII code was created in 1963 by the \"American Standards Association\" Committee or \"ASA\" the agency changed its name in 1969 by \"American National Standards Institute\" or \"ANSI\" as it is known since. This code arises from reorder and expand the set of symbols and characters already used in telegraphy at that time by the Bell company.

At first only included capital letters and numbers,but in 1967 was added the lowercase letters and some control characters, forming what is known as US-ASCII, ie the characters 0 through 127. So with this set of only 128 characters was published in 1967 as standard, containing all you need to write in English language.

In 1981, IBM developed an extension of 8-bit ASCII code called \"code page 437\" in this version were replaced some obsolete control characters for graphic characters. Also 128 characters were added , with new symbols, signs, graphics and latin letters, all punctuation signs and characters needed to write texts in other languages, such as Spanish. In this way was added the ASCII characters ranging from 128 to 255.

IBM includes support for this code page in the hardware of its model 5150 known as \"IBM-PC\" considered the first personal computer.The operating system of this model the \"MS-DOS\" also used this extended ASCII code.Almost all computer systems today use the ASCII code to represent characters and texts (336).

The ASCII Value of a character \'1\' -- Decimal value -1, Hexadecimal value-0x31, binary value-011 0001

The ASCII Value of a character \'c\'-- Decimal value -99, Hexadecimal value-0x63, binary value-110 0011

the internal machine representation of characters is in equivalent binary form.

The character \'c\' and \'1\' are called printable charcters

#include <iostream>

using namespace std;

int main()
{
char ascii;
cout << \"Enter a character: \";
cin >> ascii;
cout << \"Its ascii value is: \" << (int) ascii << endl;
return 0;
}

C++ PROGRAMING ANSWER AND EXPLAIN BOTH! 1. What is the ASCII value of the character \'1\'? 2. What is the ASCII value of the character \'c\'?SolutionThe America

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site