Datatype in C++ in Tamil || C++ Datatypes || Built-in, User Defined, Derived Datatype
Datatype:
Datatype is Used to define the type of data.
Built in Data type
Derived Data type
User defined Data Type
Built in Data Type:
int, float, double, char and void.
Integer:
The int keyword is used to denote integers.
Its size is usually 4 bytes. Meaning, it can store values from -2147483648 to 2147483647.
For example,
int age = 15;
Float and Double:
float and double are used to store floating-point numbers.
Size of float = 4 bytes
Size of double = 8 bytes.
For example,
float pi = 3.14;
double volume = 134.64534;
Character:
Keyword char is used for characters.
Its size is 1 byte.
Characters in C++ are enclosed inside single quotes ' '.
Void:
The void keyword means "nothing" or "no value“.
User Defined Type:
The data types that are defined by the user are called user defined data type.
Example:
Structure
Union
Class
Enumeration
Datatypes:
Data types that are derived from fundamental data types are derived types.
For example: arrays, pointers, function, references, etc.
Dear Friends/ Learners/Students
Welcome to our விரும்பி படி Channel. In this channel, you can easily learn about various interesting topics like education, poem, speech, unknown facts, motivational stories etc., The main goal of our channel is everyone should not memorize, should understand the concepts. In this channel, you can see videos in the following topics.
1. Social
2. Computer
3. தமிழ் இலக்கணம்
4. English Grammar
5. Maths Shortcuts
6. Interesting Stories
My Other Video Links:
• OOP Introduction in Tamil || OOPs Con... - OOP Concepts 1
• OOP Concepts with Real Time Examples ... - OOP Concepts 2
• C++ Tokens in Tamil || Keywords || I... - C++ Tokens
• C++ Operators - C++ Operators Part 1
• C++ Operators | Operators in C++ | C+... - C++ Operators Part 2