📖 Samacheer Kalvi · 11th TN - English Medium · Computer Science · Page 138question

Data Types, Variables and Expressions · Part 16

Chapter 3: 4 · Computer Science

endl; Output: . Example: Chapter Page - - . What is meant by type conversion? .

How implicit conversion is different from explicit conversion? . What is the difference between endl and \n? .

What is the use of references? . What is the use of setprecision ( ) ? ?

Evaluate Yourself Hands on practice: . Write C++ programs to interchange the values of two variables. a. Using the third variable b.

Without using third variable . Write C++ programs to do the following: a. To find the perimeter and area of a quadrant. b.

To find the area of triangle. c. To convert the temperature from Celsius to Fahrenheit. .

Write a C++ to find the total and percentage of marks you secured from 10th Standard Public Exam. Display all the marks one-by-one along with total and percentage. Apply formatting functions. • Every programming language has two fundamental elements, viz., data types and variables.

• In C++, the data types are classified as three main categories ( ) Built-in data types ( ) User-defined data types ( ) Derived data types. • The variables are the named space to hold values of certain data type. • There are five fundamental data types in C++: char, int, float, double and void. • C++ compiler allocates specific memory space for each and every data handled according to the compiler’s standards.

• Variables are user-defined names assigned to a memory location in which the values are stored. • Declaration is a process to instruct the compiler to allocate memory as per the type specified along with the variable name. • Manipulators are used to format output of any C++ program. Manipulators are functions specifically designed to use with the insertion (<<) and extraction(>>) operators.

• An expression is a combination of operators, constants and variables arranged as per the rules of C++. • The process of converting one fundamental data type into another is called as “Type Conversion”. C++ provides two types of conversions ( ) Implicit type conversion and ( ) Explicit type conversion. Points to Remember Chapter Page

Related topics

Have a question about this topic?

Get an AI answer grounded in your actual textbook — with the exact page reference.

Ask AI about this topic →