Concept
of Data types:
Let
us look at the following example,
Name
= Ram
Age
= 15
Average_Mark
= 85.6
In
the above example, Name, Age, Average_mark are the fields which hold the values
such as Ram, 15, and 85.6 respectively.
In
a programming language, fields are
referred as variables and the values are referred to as data. Each data item in the above
example is looking different. That is, “Ram” is a sequence of alphabets and the
other two data items are numbers. The first value is a whole number and the
second one is a fractional number. In real-world scenarios, there are lots of
different kinds of data we handle in our day-to-day life. The nature or type of
the data item varies, for example distance (from your home to school), ticket
fare, cost of a pen, marks, temperature, etc.,
In
C++ programming, before handling any data, it should be clearly specified to
the language compiler, regarding what kind of data it is, with some predefined
set of data types.
Related Topics
Privacy Policy, Terms and Conditions, DMCA Policy and Compliant
Copyright © 2018-2023 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.