Subscribe

Header Ads

Steps in Learning C


1. C Character Set

Character denotes any alphabet, digit, or special symbol used to represent information.

Valid alphabets, number, and special symbols in C are:

Alphabets -             A,B,...,Z
                                a,b,....,z

Digits                     0,1,2,3,4,5,6,7,8,9

Special Symbols -    ~ ‘ ! @ # % ^ & * ( ) _ - + = | \ { } [ ] : ; " ' < > , . ? / 


2. Constants, Variables, and Keywords

a. Constants 

Constants are the entity that has a fixed value and it can be held by a variable e.g.  35, 50, etc.

C constants are divided into 2 categories:

  1. Primary Constants
  2. Secondary Constants

b. Variable

Variable is the entity whose value may change during the execution of the program. 
It is the name of the memory location which can hold different values at different times.
For example:

Here, x is variable and 3 is constant.



c. keywords

The words whose meaning is already explained to the C compiler are known as C keywords.
It can not be used as a variable.
The 32 variables in C are given below:
                
                



            

3. Instructions :

Instructions are the commands that instruct the compiler to do a certain task.

4. Program:

 The program may be defined as the set of instructions that can be executed by a computer to perform a specific task.



Post a Comment

0 Comments