how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");
Answer Posted / sai
It doesn't has condition in the loop to move on, and here i
is of type what?, not mentioned.
This loop doesn't executes with this condition, it should
be told i<= or i>= depending on the requirement.
Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
Is return a keyword in c?
Explain two-dimensional array.
What are the functions to open and close the file in c language?
Why do we use namespace feature?
A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none
How can I implement a delay, or time a users response, with sub-second resolution?
Explain the use of 'auto' keyword in c programming?
Explain how can I read and write comma-delimited text?
Is a pointer a kind of array?
How can you return multiple values from a function?
Tell me what is the purpose of 'register' keyword in c language?
Is main a keyword in c?
What do the functions atoi(), itoa() and gcvt() do?
Why c is procedure oriented?
What is the scope of local variable in c?