basic data types in c++
TRANSCRIPT
Basic Data Types in C++
Welcome To My Presentation
What is BASIC Data Types in C++?
A data type determines the type and the operations that can be performed on the data. C++ provides
various data types and each data type is represented differently within the computer's memory.
Classified of Basic Data Types in C++
There are many data-types available in C++. They are classified under two categories:
Built-In or Fundamental Data typesDerived or User-Defined Data types
DATA TYPES
FUNDAMENTAL DATA TYPES
USER DEFINED DATA TYPES
DATA TYPE MODIFIERS
DERIVED DATA TYPES
Basic Data Types in C++
Various Data Types in C++
Built-in Data Types Built-in data types are the most basic data-types in C++.
The term built-in means that they are pre-defined in C++ and can be used directly in a program.Example: • Character char • Integer int • Floating point float• Double floating point double
Apart from these, we also have void and bool data types.
Derived Data Types
They are composed of built-in data types.
Examples are : array, structure, union, class, pointers etc
User-Defined Data types
User-defined data types are those which are first declared and defined by the user before use.
Example: struct ; union ; class; enumeration; are User defined types
Explain Data Type in C++. Char: Characters refer to the alphabet, numbers and other characters (such as {, @, #, etc.) defined in the ASCII character set.
Int: Numbers without the fractional part represent integer data. In C++, the int data type is used to store integers such as 4, 42, 5233, -32, -745.
Floating point Data Type: A floating-point data type is used to store real numbers such as 3 .28, 64. 755765, 8.01, -24.53.
Void: The void data type is used for specifying an empty parameter list unction and return type for a function.
Bool : The boo1data type can hold only Boolean values, that is; either true or false, where true represents 1 and false represents 0.
Array : An array is a set of elements of the same data type that are referred to by the same name.
Function: A function is a self-contained program segment that carries out a pacific well-defined task.
Reference: A reference is an alternative name for a variable. That is, a reference is an alias for a variable in a program.
Explain Data Type in C++.
11
Thank You!
Hridoy || Roll 20 || CSE E42 || OOP || DIU