Explain basic data type in C++.
Answers
Answered by
2
Answer:
Built in data types
char: For characters. Size 1 byte.
int: For integers. Size 2 bytes.
float: For single precision floating point. Size 4 bytes.
double: For double precision floating point. Size 8 bytes.
bool: For booleans, true or false.
wchar_t: Wide Character.
Answered by
0
Answer:
Data Type Meaning Size (in Bytes)
int Integer 2 or 4
float Floating-point 4
double Double Floating-point 8
char Character 1
wchar_t Wide Character 2
bool Boolean 1
void Empty 0
Similar questions
Computer Science,
1 month ago
English,
1 month ago
English,
3 months ago
English,
10 months ago
History,
10 months ago