GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||
GeezerVison is showing www.geeksforgeeks.org — C++ Char Data Types - GeeksforGeeks C++ Char Data TypesLast Updated : 11 Oct, 2025 A Char datatype is a datatype that is used to store a single character. It is always enclosed within a single quote (' ').
Output g ASCII ValueASCII Value stands for American Standard Code for Information Interchange. It is used to represent the numeric value of all the characters.
Convert Character Value to Corresponding ASCII ValueTo convert a character to ASCII value we have to typecast it using int(character) to get the corresponding numeric value.
Output The Corresponding ASCII value of 'g' : 103 The Corresponding ASCII value of 'A' : 65 Convert ASCII Value to Corresponding Character ValueTo convert an ASCII value to a corresponding Character value we have to typecast it using char(int) to get the corresponding character value.
Output The Corresponding character value of x is : 5 The Corresponding character value of x is : A The Corresponding character value of x is : a Escape Sequence in C++Escape sequences are characters that determine how the line should be printed on the output window. The escape sequence always begins with a backslash '\' (also known as an escape character). Some Examples of Escape Sequences are mentioned below:
Comment ExploreStandard Template Library(STL) Practice & Problems | ||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |