Topic : Basic Concepts
Value never changes .
Example :
const int i=2;
Variable :
Having different values .
Example :
int i=2;
int i=3;
Expression :
Combination of Constants,Variables and Operators .
Example :
int i,j,k;
j=1;
k=2;
i=j+k;
Statement :
Complete Instruction end with semicolon .
Example :
int i;
Statement Block :
Group of Statements start with "{" and end with "}" .
Example :
{
int i;
int j;
}
Arithmetic Operators :
Addition(+),Subtracton(-),Multiplication(*),Division(/) ,Modulo(%)(Remainder) .
Example :
int i,j,k;
j=1;
k=2;
i=j+k;
function :
Block of Code that performs a Specific task .
Example :
display()
{
printf("function is displayed");
}
Keyword :
Reserved Word that has a specific meaning .There are 32 Keywords in C .
Example :
int,char,float,........
0 comments:
Post a Comment