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

Tokens in C

In C language the smallest unit of a program is called Token. Tokens are created using the C character set. These tokens are delimited from each other by white spaces just like words in English language are delimited by white spaces. The Syntax Rule of the C language dictates how to create tokens in C … Read more

character set of C

The character set of C comprises of wide range of symbols that can be used to create tokens. These symbols are available on all modern personal computers. These characters can be grouped into following categories: 1. Letters 2. Digits 3. Special Characters 4. White Spaces Table – 1 shows the complete set of characters supported … Read more

Advantages of C language

C language has in-numerous advantages. The important advantages of C language are described as follows: 1. Easy to Understand: C language is a structured programming language. The program written in C language is easy to understand and modify. 2. Middle Level Language: C language has combined features of low level language (such as assembly language) … Read more

Features of C language

C language has a rich set of features. These include: 1. There are a small, fixed number of keywords, including a full set of control flow primitives. This means there is not much vocabulary to learn. 2. C is a powerful, flexible language that provides fast program execution and imposes few constraints on the programmer. … Read more