Tag Archives: C-Basic

Storage Classes in C

Every variable in C programming has two properties: type and storage class. Type refers to the data type of a variable. And, storage class determines the scope, visibility and lifetime of a variable. Storage Classes are used to describe the features of a variable/function. These features basically include the scope, visibility and life-time which help us to trace… Read More »

Variables in C | Set 2

Prerequisite – Variables in C | Set 1 In programming, a variable is a container (storage area) to hold data. A variable is nothing but a name given to a storage area that our programs can manipulate. Each variable in C has a specific type. That is, every variable declared must be assigned as a certain type of… Read More »

Operators in C

Operators are the foundation of any programming language. An operator is a symbol or a special character that tells the computer to perform certain mathematical or logical manipulations which is applied to operands to give a result. It can operate on integer and real numbers. For example, consider the below statement: c = a + b; Here, ‘+’… Read More »

Constants in C | Set 2

Prerequisite – Constants in C Constants refer to fixed values that the program may not alter during its execution. These fixed values are also called literals. Constants can be of any of the basic data types. Types of Constant in C : C supports several types of constants in C language as Character Constants, i.e., Single Character Constant,… Read More »

Keywords in C

A token is the smallest element of a program that is meaningful to the compiler. Tokens can be classified as follows: Keywords Identifiers Constants Strings Special Symbols Operators Keywords Keywords are already defined by Compiler that cannot be used as Variable Name, so keywords are also called as reserved words. The basic instructions are built up using a… Read More »

Identifier in C

A token is the smallest element of a program that is meaningful to the compiler. Tokens can be classified as follows: Keywords Identifiers Constants Strings Special Symbols Operators Identifiers Identifiers are names for entities in a C program, such as variables, arrays, functions, structures, unions and labels. An identifier can be composed only of uppercase, lowercase letters, underscore… Read More »

Introduction to C programming language

C is developed by Dennis Ritchie in the year 1972. It is a procedural programming language and mainly developed as a system programming language to write an operating system. C was invented to write UNIX operating system. Linux OS, PHP, and MySQL are written in C. C has been written in assembly language. C is extremely popular, simple… Read More »

Difference between C and C++

1. C language : C was developed by Dennis Ritchie between the year 1969 and 1973 at AT&T Bell Labs to write Operating System. It is a procedural programming language and does not support classes and objects. 2. C++ language : C++ was developed by Bjarne Stroustrup in 1979. It has imperative, object-oriented and generic programming features. C++… Read More »

Identifier Naming rules in C language

Prerequisite – C Language Introduction In C any name is called identifier. This name can be: 1. Variable name 2. Function name 3. Enum constant name 4. Micro constant name 5. Goto label name And, any other data type name like, 6. Structure 7. Union 8. Enum names or Typedef name These are following rules that should follow:… Read More »