logging in or signing up arti aSGuest119511 Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 19 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: November 16, 2011 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript : WELCOM E IN MY PRESENTATIONPRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE: PRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE BY: ARTI BCA 1 ST SEMESTERCONTENTS : : CONTENTS : # INTRODUCTION # TYPES OF DATA TYPES # INTEGER DATA TYPES # CHARACTER DATA TYPES # FLOATING DATA TYPESINTRODUCTION: 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 TYPEINTEGER 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 127Floating 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.1254Program 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 You do not have the permission to view this presentation. In order to view it, please contact the author of the presentation.
arti aSGuest119511 Download Post to : URL : Related Presentations : Share Add to Flag Embed Email Send to Blogs and Networks Add to Channel Uploaded from authorPOINT lite Insert YouTube videos in PowerPont slides with aS Desktop Copy embed code: (To copy code, click on the text box) Embed: URL: Thumbnail: WordPress Embed Customize Embed The presentation is successfully added In Your Favorites. Views: 19 Category: Entertainment License: All Rights Reserved Like it (0) Dislike it (0) Added: November 16, 2011 This Presentation is Public Favorites: 0 Presentation Description No description available. Comments Posting comment... Premium member Presentation Transcript : WELCOM E IN MY PRESENTATIONPRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE: PRESENTATION OF DATA TYPES IN ‘C’ LANGUAGE BY: ARTI BCA 1 ST SEMESTERCONTENTS : : CONTENTS : # INTRODUCTION # TYPES OF DATA TYPES # INTEGER DATA TYPES # CHARACTER DATA TYPES # FLOATING DATA TYPESINTRODUCTION: 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 TYPEINTEGER 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 127Floating 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.1254Program 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