for loop

A for loop is an entry control loop which has all three parts of loop structure i.e.. initialization, condition and updation. these three parts are separated by semicolon (;) . loop statements are executed til condition is true. when condition is fail then program control will be shifted to next instruction of program. for loop is more effective when programmer already known that how many times loop will be executed. for loop is a simple loop structure and if we remove initialization and updation parts from it then it works similar to while loop.

เคซॉเคฐ เคฒूเคช เคเค• เคंเคŸ्เคฐी เค•ंเคŸ्เคฐोเคฒ เคฒूเคช เคนै เค‡เคธเคฎें เคฒूเคช เค•े เคคीเคจो เคญाเค—ो เค‡เคจिเคถिเคฏเคฒाเค‡เคœेเคถเคจ, เค•ंเคกीเคถเคจ เคเคตं เค…เคชเคกेเคถเคจ เค•ो เคเค• เคธाเคฅ เคฐเค–ा เคœाเคคा เคนै เค‡เคจ्เคนें ; เค…เคฐ्เคงเคตिเคฐाเคฎ เคธे เคชृเคฅเค• เค•िเคฏा เคœाเคคा เคนै। เคœเคฌ เคคเค• เค•ंเคกीเคถเคจ เคธเคค्เคฏ เคนोเคคी เคนै เคฒूเคช เค•े เคธ्เคŸेเคŸเคฎेंเคŸ เคฐเคจ เคนोเคคे เคฐเคนเคคे เคนै เค…เคจ्เคฏเคฅा เคช्เคฐोเค—्เคฐाเคฎ เค•ंเคŸ्เคฐोเคฒ เค…เค—เคฒे เคธ्เคŸेเคŸเคฎेंเคŸ เคชเคฐ เคชเคนुँเคš เคœाเคคा เคนै เค‡เคธเค•ा เคช्เคฐเคฏोเค— เคคเคฌ เค…เคค्เคฏเคงिเค• เคช्เคฐเคญाเคตी เคนोเคคा เคนै เคœเคฌ เคช्เคฐोเค—्เคฐाเคฎเคฐ เค•ो เคฏเคน เคชเคนเคฒे เคธे เคœ्เคžाเคค เคนो เค•ी เคฒूเคช เคธ्เคŸेเคŸเคฎेंเคŸ เค•ो เค•िเคคเคจी เคฌाเคฐ เคฐเคจ เค•िเคฏा เคœाเคฏेเค—ा। เคซॉเคฐ เคฒूเคช เคเค• เคธिंเคชเคฒ เคฒूเคช เคนै เค…เคฐ्เคฅाเคค เคฏเคฆि เค‡เคธเคฎें เคธे เค‡เคจिเคถिเคฏเคฒाเค‡เคœेเคถเคจ เคเคตं เค…เคชเคกेเคถเคจ เคญाเค— เค•ो เคนเคŸा เคฆिเคฏा เคœाเคคा เคนै เคคเคฌ เคฏเคน เคต्เคนाเค‡เคฒ เคฒूเคช เค•े เคธाเคฎाเคจ เคต्เคฏเคต्เคนाเคฐ เค•เคฐเคคा เคนै

Syntax:- 

for(initialization, condition, updation){
statements;
.................
}

Comments

Popular posts from this blog

C Language Topics in Hindi and English

C language IMP Questions for BSc/BA/BCom/BCA/BE/BTech/MSc/MCA (CS/IT) I year students