3-Intro-CPP-Data Types-int-float-char-array-ASGMNT-3-03-FEB-2021
3-Intro-CPP-Data Types-int-float-char-array-ASGMNT-3-03-FEB-2021
Primitive Data Types: These data types are built-in or predefined data
types and can be used directly by the user to declare variables. example:
int, char, float, bool etc. Primitive data types available in C++ are:
Integer
Character
Boolean
Floating Point
Double Floating Point
Valueless or Void
Wide Character
Derived Data Types: The data-types that are derived from the primitive
or built-in datatypes are referred to as Derived Data Types. These can
be of four types namely:
Function
Array
Pointer
Reference
Abstract or User-Defined Data Types: These data types are defined
by user itself. Like, defining a class in C++ or a structure. C++ provides
the following user-defined datatypes:
Class
Structure
Union
Enumeration
Typedef defined DataType
1) Write a C++ program to read ‘n’ integers from user and store them in
user using cin>>. Find the sum of all numbers of the arr_numbers[].
4) List out the advantages and disadvantages of array data type in C++.
clearing variables?