Example HTML page

C MCQ : For Loop

What is the output of the following code? Comment the reason for it.

#include <stdio.h>
    int main()
    {
        short i;
        for (i = 1; i >= 0; i++)
            printf("%d\n", i);
 
    }
for loop example

 

Example HTML page

Leave a Reply

Your email address will not be published. Required fields are marked *

Pin It on Pinterest