Last Updated :
20 Feb, 2019
What will be the output of the following code?
#include
int main()
{
int i=0;
for (i = 1; i <= 10; i++);
{
printf(\"%d \",i);
}
return 0;
}
[/sourcecode]
(A) 1 2 3 4 5 6 7 8 9 10
(B) 1 2 3 4 5 6 7 8 9
(C) Error
(D) None of these
Answer: (A)
Explanation:
Quiz of this Question
Share your thoughts in the comments
Please Login to comment...