Home | | Computer Science 11th std | Concept of Data types

Introduction to C++ - Concept of Data types | 11th Computer Science : Chapter 9 : Introduction to C++

Chapter: 11th Computer Science : Chapter 9 : Introduction to C++

Concept of Data types

Let us look at the following example, Name = Ram, Age = 15, Average_Mark = 85.6.

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.

 

Tags : Introduction to C++ , 11th Computer Science : Chapter 9 : Introduction to C++
Study Material, Lecturing Notes, Assignment, Reference, Wiki description explanation, brief detail
11th Computer Science : Chapter 9 : Introduction to C++ : Concept of Data types | Introduction to C++


Privacy Policy, Terms and Conditions, DMCA Policy and Compliant

Copyright © 2018-2024 BrainKart.com; All Rights Reserved. Developed by Therithal info, Chennai.