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

Explain what is the difference between far and near ?

646


What is a class c rental property?

602


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

674


what do the 'c' and 'v' in argc and argv stand for?

641


Explain #pragma statements.

600






Write a program to generate a pulse width frequency of your choise,which can be variable by using the digital port of your processor

2977


Is c easier than java?

565


What are the features of the c language?

640


What does node * mean?

705


What is difference between far and near pointers?

604


What is identifier in c?

537


What is #define in c?

614


What is static and auto variables in c?

560


What are dangling pointers in c?

633


Are there any problems with performing mathematical operations on different variable types?

568