Introduction to C / C++ Programming
Basic Data Types

Note: Please review the language-independant Programming Concepts Data Types notes before this page.

This page of notes covers only the C/C++ language specific issues regarding data types. Please follow the link above for the language-independent concepts for important background information.

Data Types

C/C++ has 5 basic types of data, with specific sub-types as follows:


Constants Exercise


Type Conversions

Enumerated Types ( Advanced, Optional )

     enum errorType { none = 0, minor1 = 1, minor2, major1 = 100, major2, fatal1 = 1000 };

Related Topics

The following topics are not covered here, but may be found in many books on C/C++;