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

Data Types, Variables and Expressions · Part 6

Chapter 3: 4 · Computer Science

long is short name for long int bytes bits -2147483648 to 2147483647 u n s i g n e d l o n g A double spaced integer without any sign bytes bits to , , , signed long A double spaced integer with sign bytes bits -2147483648 to 2147483647 The above table clearly shows that an integer type accepts only bytes of data whereas a long int accepts data that is double this size i.e., bytes of data. So, we can store more digits in a long int. (long is a modifier and int is a fundamental data type) char type Table . Memory allocation for char Data types Data type Space in memory Range of value in terms of bytes in terms of bits char Signed ASCII characte r byte bits - to u n s i g n e d c h a r ASCII character without sign byte bits to signed char ASCII character with sign byte bits - to Floating point type Table .

Memory allocation for floating point Data types Data type Space in memory Range of value in terms of bytes in terms of bits float signed fractional value bytes bits . × - to . × - double signed more precision fractional value bytes bits . × - to .

× - long double signed more precision fractional value bytes bits . × - to . × - Memory allocation is subjected to vary based on the type of compiler that is being used. Here, the given values are as per the Turbo C++ compiler.

Dev C++ provides some more space to int and long double types. Following Tables . shows the difference between Turbo C++ and Dev C++ allocation of memory. Table .

Memory allocation of Turbo C++ and Dev C++ Chapter Page - - Data type Memory size in bytes Turbo C++

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 →