basic data types in c++

11
Basic Data Types in C++ Welcome To My Presentation

Upload: hridoy-bepari

Post on 14-Apr-2017

85 views

Category:

Data & Analytics


0 download

TRANSCRIPT

Page 1: Basic Data Types in C++

Basic Data Types in C++

Welcome To My Presentation

Page 2: Basic Data Types in C++

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.

Page 3: Basic Data Types in C++

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

Page 4: Basic Data Types in C++

DATA TYPES

FUNDAMENTAL DATA TYPES

USER DEFINED DATA TYPES

DATA TYPE MODIFIERS

DERIVED DATA TYPES

Basic Data Types in C++

Page 5: Basic Data Types in C++

Various Data Types in C++

Page 6: Basic 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.

Page 7: Basic Data Types in C++

Derived Data Types

They are composed of built-in data types.

Examples are : array, structure, union, class, pointers etc

Page 8: Basic Data Types in C++

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

Page 9: Basic Data Types in C++

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.

Page 10: Basic Data Types in C++

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++.

Page 11: Basic Data Types in C++

11

Thank You!

Hridoy || Roll 20 || CSE E42 || OOP || DIU