You are here: Home / Topics / Data types in C++

Data types in C++

Filed under: C++ Interview Questions on 2022-10-30 12:05:30
  • int - to store integer data. short, long and unsigned (int, long, short) are two variety of integers which can store integer data in diferent ranges
  • float - to store real numbers
  • double - to store real number with more precision than float
  • char - to store a single letter or symbols.
  • To store a word or sentence we need character array, would be discussed later on.
  • User defined data types, means we can define data types of our own as per our need.

About Author:
V
Vikram Tanwar     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.