arti

Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

WELCOM E IN MY PRESENTATION

PRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE: 

PRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE BY: ARTI BCA 1 ST SEMESTER

CONTENTS : : 

CONTENTS : # INTRODUCTION # TYPES OF DATA TYPES # INTEGER DATA TYPES # CHARACTER DATA TYPES # FLOATING DATA TYPES

INTRODUCTION: 

INTRODUCTION DATA TYPES : * Defines a set of values and a set of operations that can be applied on those values . * A data type is a data storage format that can contain a specific type or range of values. * When computer programs store data in variables, each variable must be assigned a specific data type.

TYPES OF DATA TYPES :: 

TYPES OF DATA TYPES : INTEGER DATA TYPE CHARACTER DATA TYPE FLOATING DATA TYPE

INTEGER DATA TYPE :: 

INTEGER DATA TYPE : Integer types: : Integer types: Integers are whole numbers with a range of values, range of values are machine dependent . Integer data types are used to store numbers and characters. Here is the table of integer data type in various forms: Example:      5, 6, 100, 2500.

Character data type :: 

Character data type : Character Type : Character Type Character type variable can hold a single character. As there are singed and unsigned int (either short or long), in the same way there are signed and unsigned chars; both occupy 1 byte each, but having different ranges. Unsigned characters have values between 0 and 255, signed characters have values from –128 to 127

Floating data type :: 

Floating data type : Floating Point Types: : Floating Point Types: The floating-point data types are used to represent floating-point numbers. Floating-point data types come in three sizes: float (single precision), double (double precision), and long double (extended precision). The exact meaning of single, double, and extended precision is based on implementation defined. Choosing the right precision for a problem where the choice matters requires understanding of floating point computation. Example:      9.125, 3.1254

Program of data type : 

Program of data type #include< stdio.h > #include< conio.h > main( ) { c har name[20]; Int per; c lrscr ( ); s canf (“%s % d”,name,&per ); i f(per>=60) p rintf (“first”); e lsc p rintf (“second”); getch ( ); }

Slide 10: 

THANKS