for(i=1;i>0;i++);
printf("i=%d",i);
what will be the answer????
Answer Posted / ankit shekhavat
after for lop,there is a semicolon.it means loop terminate
here..condition inside the loop will always true.so it will
be an infinite loop..nothing will be printed on the screen.
for next statement there will be printed any garbage value...
Is This Answer Correct ? | 7 Yes | 6 No |
Post New Answer View All Answers
When is the “void” keyword used in a function?
What is an example of structure?
Describe newline escape sequence with a sample program?
What is an endless loop?
What is structure in c explain with example?
Explain how can you check to see whether a symbol is defined?
Do you know the use of 'auto' keyword?
What is string function in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
Explain how are portions of a program disabled in demo versions?
When should a type cast be used?
What is the use of getchar functions?
how to write a c program to print list of fruits in alpabetical order?
Can an array be an Ivalue?
How can I get back to the interactive keyboard if stdin is redirected?