Learn2programs allows you to learn and Explore the Basic and Advanced Programming Languages Like C++,Core Java,SQL/PLSQL for Beginners.
Showing posts with label data types. Show all posts
Showing posts with label data types. Show all posts
Tuesday, 24 June 2014
What are data type modifiers and their affect on base data type.
Data type modifiers and their affect on base data type.
The keyword which appear before the data type and which changes its meaning , are modifiers.These are signed , unsigned , short, and long . When data type modifiers appears before a type , the meaning of the data type changes in the sense that the size gets affected.
For the sake of example let's see
An int is by default 2 bytes long and hence can represent values -32768 to 32767 but when modifier unsigned appears before it , its range becomes 0 to 65,535.
Labels:
C++ PROGRAMMING,
data type modifiers,
data types,
DEFINITIONS,
What are
Monday, 23 June 2014
Sunday, 22 June 2014
What are data types in c++ and predefined data types in C++ ?
Data types in c++ and Predefined data types in C++
The Data types are the means to identify the type of data entered and associated operations of handling it.
In the C++ there are two types of data types :
1. Fundamental data types These are the data types that are not composed of any other data type . There are five fundamental data types : char, int ,float, double, and void.
2. Derived data types These are the data types that are composed of fundamental data types . These are : array , function, pointer,reference , constant , class , structure,union, and enumertion.
