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


Please Help Members By Posting Answers For Below Questions

Is return a keyword in c?

599


Explain two-dimensional array.

631


What are the functions to open and close the file in c language?

596


Why do we use namespace feature?

584


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

734






How can I implement a delay, or time a users response, with sub-second resolution?

626


Explain the use of 'auto' keyword in c programming?

684


Explain how can I read and write comma-delimited text?

660


Is a pointer a kind of array?

602


How can you return multiple values from a function?

635


Tell me what is the purpose of 'register' keyword in c language?

620


Is main a keyword in c?

633


What do the functions atoi(), itoa() and gcvt() do?

726


Why c is procedure oriented?

575


What is the scope of local variable in c?

579