Advertisements
Advertisements
प्रश्न
Give an example to illustrate null loop.
थोडक्यात उत्तर
उत्तर
The example of null loop by using for statement is as shown below:
for(j = 1; j <= 10; j++)
{}
There is no statement enclosed under curly braces. Hence, the loop simply repeats 10 times.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?