Hello.
In this lecture you will learn about the character types, the character types here, the store, human
language data.
There are six character types.
The six are car, car, character, 16 T character and 32 T sine car.
Unsigned character.
We.
Character T.
So the character type is a default type.
It has it always has.
A one byte could be signed or unsigned.
For example, this character type uses in ASCII system.
Here we have character 16 T.
This is the use for for two byte character sets, example UTF 16 and character 32 byte here used for
the four byte.
Sorry for this mistake used for four byte character sets.
For example, this character type used on UTF two or UTF 32 character system.
So the sign character same as character, but guaranteed to be signed, unsigned character as same as
character, but guaranteed to be unsigned.
And lastly, we character T has a large enough to contain the largest character of the implementations
local which called Unicode.
So we have two types of characters, mainly two groups of characters.
These are the narrow characters and white characters.
Narrow characters include characters, signed character, unsigned character, and the white characters
includes car 16, T, car 32, T and W character T Here the the characters types here.
As you can see here, all of that is character types and this is these are the for the types that store
human language data for example A, B, C, D or like that.
So we let's go to character literals.
We will use here A character letter is a single constant character here, single quotation mark like
this.
So all characters, if the character is any type but character car, you must also provide a prefix
for L for car u for car 16 T and and uppercase U for character 32 T So let me actually add this here.
Um.
Literal.
Literal is character to literal is uppercase u.
As I said, character 16 T is under case.
Literal is just u.
But not uppercase and the usual character.
Has, for example, the has.
L.
Here, as you can see here.
But for the default character, you just use the two quotation marks.
And between this or be here.
You here.
So we have the escape sequences for characters as well.
The escape sequence.
Some characters don't display on the screen.
Instead, they force the display to do things like move the cursor to the left side of the screen carriage,
return or move the cursor down one line.
The new line here so other characters can display on the screen.
But they are part of the cplusplus language syntax, such as simple or double quotes you, so you must
use them very carefully.
But these characters into car, you use the escape sequences.
So let's, let's create a list of the escape sequences here in this lecture.
The first escape sequences here.
Escape sequences.
New line is.
An.
Uh, the top here is.
He.
Here.
Tab vertical is V.
The backspace.
Back space is be.
Of ski.
The carriage.
Return of.
P.
The carriage return.
Is re are.
For form fit.
Form fit is f.
The alert alert is E.
The backslash.
Is double here.
Double X character.
The single quote is this.
And double quote.
Is this double quote just a normal double quote.
And the null character here, the null.
Car is zero backslash.
Zero.
So we have a Unicode escape characters as well.
So you can specify Unicode character, Unicode characters, literals using the universal character names
and you can form a universal character name in one of the two ways the prefix you here you.
Uh, followed by the four digit of Unicode point here or the prefix uppercase U followed by an eight
digit Unicode code point.
So you can represent a E character here.
E character is here.
A lowercase u and four digit.
So.
So a character is this.
So actually you can learn this character on um the so there's a list for this character Unicode characters
here you need Unicode characters.
Here.
Uh, table.
Here I found this website which is almost all Unicode characters and their, um, their Unicode point
character and UTF eight points here.
So as you can see here, if you want to write an A to console.
Uh, you can just use this with single quotes followed by the backslash U and after that you enter the
code of this characters.
So as you can see, you can use the other symbols and characters here with different numbers.
Here.
So I will copy this website.
Uh, on the lectures download here, which you can see it here.
So.
Let's begin with an example.
Enough for the terrorists here.
Let's get to practical.
So let's create our code here.
Let's create some character named X and give this M and let's create another character.
Double character.
He called ye here.
Why the big uppercase L and Z here?
And then print f.
Windows binaries start with C and C again and new line and gave this format specifiers as first our
x and y.
Here.
Uh, I thought we did hear something or see.
No.
So we gave this X and Y.
Yeah.
Sorry.
Well, let's compile this code now.
Oops.
Run.
Here a Windows binaries start with M.
And Z.
This program outputs this year.
As you can see here, even though the M is a narrow character car and then the Z is here is a wide character.
Printf works because the program uses the correct format specifiers.
The next lecture will be about the boolean types, so I'm waiting you in the next lecture.