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
What are the parts of c program?
Tell me is null always defined as 0(zero)?
What is volatile, register definition in C
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Add Two Numbers Without Using the Addition Operator
What is memcpy() function?
Write a program to check palindrome number in c programming?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Why we not create function inside function.
Can you please compare array with pointer?
Write programs for String Reversal & Palindrome check
What is the purpose of scanf() and printf() functions?
What is the condition that is applied with ?: Operator?
How can this be legal c?
What is malloc calloc and realloc in c?