int i =10
main()
{
int i =20,n;
for(n=0;n<=i;)
{
int i=10
i++;
}
printf("%d", i);
Answer Posted / vignesh1988i
it will not print i value at all , since the loop is always
true for all cases. since the termination condition is
depending upon n&i,always n<=i, what ever possibe positive
value greater than zero ,it may be.
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What does %d do?
Which header file is used for clrscr?
How can I send mail from within a c program?
Can I initialize unions?
What is pass by reference in functions?
Is there any possibility to create customized header file with c programming language?
If you know then define #pragma?
What are the salient features of c languages?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
How can I invoke another program (a standalone executable, or an operating system command) from within a c program?
Can a program have two main functions?
What is the function of multilevel pointer in c?
What is the use of pointers in C?
How can I change the size of the dynamically allocated array?