- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
What are fundamental data types in C++ programming?
A fundamental or primitive type is a data type where the values that it can represent have a very simple nature (a number, a character or a truth-value); the primitive types are the most basic building blocks for any programming language and are the base for more complex data types.
C++ has the following primitive data types −
S.No | Type | Description |
---|---|---|
1 | bool | Stores either value true or false. |
2 | char | Typically a single octet (one byte). This is an integer type. |
3 | int | The most natural size of an integer for the machine. |
4 | float | A single-precision floating point value. |
5 | double | A double-precision floating point value. |
6 | void | Represents the absence of type. |
- Related Articles
- Difference between fundamental data types and derived data types in C++
- Difference between fundamental data types and derived data types
- What are pointer data types in C#?
- What are nullable data types in C#?
- What are dynamic data types in C#?
- What are object data types in C#?
- What are reference data types in C#?
- What are enumerated data types in C++?
- What are the different types of functions in C Programming?
- What are the data types, value types and reference types in C#?
- What are user defined data types in C#?
- What are primary data types in C language?
- What are Fundamental Units ?
- What are string and String data types in C#?
- What are different types of data in C language?

Advertisements