C Programming - Control Instructions - Discussion

Discussion Forum : Control Instructions - General Questions (Q.No. 1)
1.
How many times "IndiaBIX" is get printed?
#include<stdio.h>
int main()
{
    int x;
    for(x=-1; x<=10; x++)
    {
        if(x < 5)
            continue;
        else
            break;
        printf("IndiaBIX");
    }
    return 0;
}
Infinite times
11 times
0 times
10 times
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
142 comments Page 13 of 15.

Bulbul said:   1 decade ago
We can not use continue with if statement.

Vivek said:   1 decade ago
No output will be there for this code.

Varsha said:   1 decade ago
I agree with Sanjeev kumar, thanks.

Yuva said:   1 decade ago
I agree with sanjeev kumar answer.

S.sivaraj said:   1 decade ago
Yes I agree above this answer.

Soumya said:   1 decade ago
Thnks to sandeep. Its correct.

Anand kumar said:   1 decade ago
Thanks you for all...........

Kamlesh said:   1 decade ago
I am not getting any thing.

Roger said:   10 years ago
After 6 loops it will exit.
(1)

Bandita said:   1 decade ago
Thnks Srinivas and sandeep


Post your comments here:

Your comments will be displayed after verification.