first i would like to tell about if .
if is keyword in c language .
if is check the condition(expression) .if the expression is non zero value the condition is true .it will the go through the fallowing operations .other wise the condition is failed.
if(expression)
{
}
if the expression is >0 ,<0 these statements are execute inside the if statement.
if the expression is =0 condition is failed.
Any experssion including assignment or a function call can be a statement in C
One of the statements, obviously.
anything ending in semicolon/;
The compiler demands it: your programs wouldn't compile without them.
Statements. Typical usage: if (<condition>) <statement>; else <statement>;
semicolon ';' (Not applicable for block-statements)
if is a like a choicee.g.if (x==1) if x is equal to 1 then it will print "x=1"{printf("x=1);}else{printf("x does not =1")}Answer: If is an identifier, if is a statement.
differance between control statement and looping statement?
for(assigning initial value;condition;increment/decrement) { statement; }
With printf.Example:for (i=0; i
you have to give a statement in the following syntax datatype variable;
An iteration is an instance of a structured loop statement (for, while or do-while).