WELCOME�TO�SEMINAR
ON TOPIC: BASIC DATATYPES(Built in types)
BY: Saakshi J.Shetty(20422)
There are 3 types of Data types in C++…
C++ datatypes
Definition of built in types
Classifications
Built-in-datatypes are of 3 types:
Int
Char
Float
Double
Description on built-in- datatypes
Int, char, float, double, boolean, void ,wide character - are the most basic and common built-in data types in every programming language. Other than these if you want to work with complex data categories, you will have to define them yourself.
Types and examples of built in datatypes.(integer datatype-int)
Character datatype-char
Float datatype-float
Double datatype- double
Boolean Datatype-bool
bool y = 100; // true
Void datatype: void
Wide character datatype: wchar_t
The discussed datatypes can be classified further into following types:
For example:
Sizes of each datatype:
Sno | Datatypes | Sizes(in bytes) |
1 | void | 0 |
2 | char | 1 |
3 | bool | 1 |
4 | int | 2 |
5 | wchar_t | 2 |
6 | float | 4 |
7 | double | 8 |
Ranges of each datatype:
IT’S TIME FOR PROGRAMMING EXAMPLE…..