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

Identifiers in C

Identifiers are user-defined tokens used to name variables, functions, etc. An identifier consists of a sequence of letters and digits. Underscore is also used. However, the first character of the identifier should a letter or an underscore. Though there is logically no restriction on the length of the number of characters in an identifier, however … Read more

Keywords in C

Keywords are those tokens or words whose meaning are already defined within the C language and cannot be changed. As an analogy, in English language the meaning of verbs, adjectives, common nouns, and so on is pre-defined and can’t be changed. These tokens of English language are its keywords. Similarly, in C language some tokens … Read more