Classification of Data Types in C

The wide variety of data types supported by C language can be classified into 3 classes: 1. Primary Data Types 2. User-defined Data Types 3. Derived Data Types C supports 4 primary data types which include integer, character, floating point and double-precision floating point. C also supports creating user-defined data types using keywords typedef and … Read more

Variables in C

A Variable represents some memory location which is used to store some value. Unlike constants, a variable may take different values at during times during execution. In other words, the value within a variable can be changed; hence the name. A Variable-name is an identifier token that follows the syntax rules for creating identifier, however … Read more

Constants in C

Constants are those tokens in C language whose value is fixed and does not change during the execution of a program. There are various types of constants in C.  Integer Constants These constants refer to a sequence of digits. Any representation can be used to specify an integer constant. Table -1 shows ways to specify … Read more