Chapter 2.3 - Identify the various C data types | Part -1



DATA TYPES

C language is rich in its data types. Storage representations and machine instructions to handle constants differ from machine to machine. The variety of data types available allow the programmer to select the types appropriate to the needs of the applications as well as the machine.
ANSI C supports three classes of data types:

  1. Primary (or fundamental) data types
  2. Derived data types
  3. User-defined data types
The primary data types and their extensions are discussed in this section. The user-defined data types are defined in the next section while the derived data types such as arrays, functions, structures, and pointers are discussed as and when they are encountered.
  


All C compilers support five fundamental data types, namely integer (int),  character (char), floating point (float), double-precision (double) and void. Many of them also offer extended data types such as long int and log variable. Various data types and the terminology used to describe them are given in Fig 2.4. The range of the basic four types is given in Table 2.7. We discuss briefly each one of them in this section #allaboutprogramming62.


Note:- C99 adds three more data types namely_Bool_Complex, &_Imaginary. See the Appendix "C99 Features"

Various C data types




Primary Data Types #allaboutprogramming62

Post a Comment

1 Comments

  1. Download Free KineMaster Pro Mod APK (v5.0.1) 2021

    https://www.technologyandfun.com/2021/05/download-free-kinemaster-pro-mod-apk-2021.html

    ReplyDelete

Ask Me Everything About Programming.