Monday 23 December 2019

Data Types in C++ - tccicomputercoaching.com


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.
  • int - integer: a whole number.
    • e. 45,6789
  • float - floating point value: a number with a fractional part.
    • e. 56.89
  • char - a single character.
Four types data there are:
  1. a) small a to z
  2. b) capital A to Z
  3. c) 0 to 9 digit
  4. d) other symbols like tab, space,*,>,?,$ etc.
i.e 'x', 'c', '1','*','#' etc.
  1. User Defined Types:
  • Structure
  • Union
  • Enum
  • Class
  1. Derived Types:
  • Array
  • Function
  • Pointer
To know more in detail about Data Types in C++ , c++ Course at TCCI-Ahmedabad, Computer class in Bopal-Satellite-Ahmedabad

Call us @ 98256 18292

Visit us @http://tccicomputercoaching.com/

No comments:

Post a Comment