In computer science and computer programming, a data type is a grouping of
data through which the compiler or interpreter can know how the developer
expects to utilize the data. Most programming languages support various
types of data, for example:
12 , 67.90, 'c', "hello!! Tom"
As a human being we can differentiate all values are different, but machine can't differentiate. So, we have to inform compiler which type data is being used.
There are main 3 categories in C++ Language :
1. Built in Types:
· void - valueless special purpose type which we will examine closely in later sections.
· float - floating point value: a number with a fractional part.
o i.e. 56.89
a) small a to z
b) capital A to Z
c) 0 to 9 digit
d) other symbols like tab, space,*,>,?,$ etc.
i.e 'x', 'c', '1','*','#' etc.
2. User Defined Types:
Call us @ 98256 18292
Visit us @http://tccicomputercoaching.com/
12 , 67.90, 'c', "hello!! Tom"
As a human being we can differentiate all values are different, but machine can't differentiate. So, we have to inform compiler which type data is being used.
There are main 3 categories in C++ Language :
1. Built in Types:
· void - valueless special purpose type which we will examine closely in later sections.
- int - integer: a whole number.
· float - floating point value: a number with a fractional part.
o i.e. 56.89
- char - a single character.
a) small a to z
b) capital A to Z
c) 0 to 9 digit
d) other symbols like tab, space,*,>,?,$ etc.
i.e 'x', 'c', '1','*','#' etc.
2. User Defined Types:
- Structure
- Union
- Enum
- Class
- Array
- Function
- Pointer
Call us @ 98256 18292
Visit us @http://tccicomputercoaching.com/
No comments:
Post a Comment