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
How to create struct variables?
Compare interpreters and compilers.
What are reserved words?
What is the heap in c?
Can you explain the four storage classes in C?
What is the difference between arrays and pointers?
Is that possible to add pointers to each other?
What does %d do in c?
What is the purpose of & in scanf?
What is break statement?
What is #define used for in c?
Is c weakly typed?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
What is identifiers in c with examples?
What are Macros? What are its advantages and disadvantages?