for is a keyword of c programming language. for loop is very frequently used in c source codes. We will discuss how to use for loop and it's variations with different program examples.
for ( initialization ; condition checking ; increment or decrement )
all the three are optional.
initialization is used to initialize variables.
for example,for(a=1,b=2;;) // and b are variables
condition checking used for checking a condition.