Professional Documents
Culture Documents
ICS Notes Computer Science Part 2 Chapter 12 Loop Constructs of C Short Questions Free Downloads Online PDF
ICS Notes Computer Science Part 2 Chapter 12 Loop Constructs of C Short Questions Free Downloads Online PDF
org
while loop
do-while loop
for loop
http://studysolutions.org
Engg. Ali Raza (Lecturer at Punjab Group Of Colleges Narowal)
E-mail. Armughal45@gmail.com, cell # +923476719517 Page 1
http://studysolutions.org
Do-while Loop
www.studysolutions.org
Q 8. What is nested loop?
Ans. A loop within the body of another loop is called nested loop. Any loop statement can be used
with in the body of any loop statement. For example a while can be used with in the body of for loop.
The nesting can be done up to any level. If the nesting level is increased the working of loop becomes
complex.
The syntax for a nested for loop statement in C is as follows
for ( init; condition; increment ) {
statement(s);
}
http://studysolutions.org
Engg. Ali Raza (Lecturer at Punjab Group Of Colleges Narowal)
E-mail. Armughal45@gmail.com, cell # +923476719517 Page 2
http://studysolutions.org
www.studysolutions.org
www.studysolutions.org
http://studysolutions.org
Engg. Ali Raza (Lecturer at Punjab Group Of Colleges Narowal)
E-mail. Armughal45@gmail.com, cell # +923476719517 Page 3