Why we need different data types in programming

Page 1

WHY WE NEED DIFFERENT DATA TYPES IN PROGRAMMING…?

 In computer science, a data structure is a particular way of collecting and forming data in computer in such away so that we can operate on them efficiently.  Computer programs are composed of two items: Data and Operations on that Data. Because, at their heart, computers are simple devices, they can only represent very simple pieces of information.

 In simple language, we can describe Data Structures are structures programmed to store data, ordered data, so that we can perform different operations easily.  For example if we store data as name “Mira” and Percentage “75.5”, then record data name is string type and percentage is float type. Record stored is student name with percentage. We can also store with Roll-No (Integer).

 Integral Types  Integral data types include all whole numbers, that is numbers they don’t have any fractional component itself.  Floating Point Types  Floating point types include all types in which a number may have a fractional component, such as 3.14 or pi.

 Characters  Most modern computer programming languages store alphabets, characters by representing each one using a small piece of numeric code.  Strings  Most modern computer programming languages have means of representing character strings, which is collections of characters such as words or sentences etc. to performed the manipulation operation on different data as per usage.

 Arrays  Arrays which are collections of data elements all having the same data type, so the execution becomes easy performing some operation on index value.  Classes  The classes which is a collection of related data that represents an entity also represents methods to maintain and manipulate that data as per requirement.

FOR MORE INFORMATION: CALL @ 9825618292 VISIT @ HTTP://TCCICOMPUTERCOACHING.COM

THANK YOU

Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.