for-loop statement in C Programming

May 25, 2017 Dhiraj 0
Share

for-statement SYNTAX: for (initialization expression; loop repetition condition; update expression) { statement; } EXAMPLE: /* Display N asterisks. */ for (count_star = 0; count_star < N;count_star += 1) { printf(“* “); } INTERPRETATION: First, the initialization expression is executed. Then, the loop repetition […]