Character Datatype in C++
Get Into Code provides you with free C++ and Java Course in Hindi/Urdu and also provides you the opportunity to practice your skills to be perfect. In the previous video we have discussed about the Floating Point Datatype in C++. In this video we are going to discuss about Character Datatype in C++.
Character Datatype
As the Name of Character Datatype itself shows that it can store character in it. Every Single Alphabet consider as a Character. It also includes Special Characters such as $, &, £ and @ etc. It can store a Single Character.
Syntax
char variable_name;
Watch The Below Video to Understand Character Datatype in C++
The best about our site is that we provide our readers to practice their skills because Practice Puts Brain in Your Muscles. So, Go Ahead and Write a C++ program which print your name stored in char Datatype? Answer the Following Question to know how much you have learnt?
- What is the Size of char?
- 8 bit
- 1 byte
- Both of The These
- What is the Range of char?
- 0 to -255
- 0 to 255
- Non of these
- How can we store Capital A in Char x; ?
- x='A'
- x=64
- x="A"
- Char variable can store a Single variable. How much variables are required to store the characters 0 to 10.
- 1
- 11
- 10
char x,y; x='A'; y=x+1; System.out.println(y);
What will be the output?- 66
- A
- B
No comments