how many times does the loop iterated ?
for (i=0;i=10;i+=2)
printf("Hi\n");

Answer Posted / pradeep

infinite loop becouse ther is no condition given there.
absence of condition it will be printing hi infinite time

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.

3692


What are the application of void data type in c?

719


Is null a keyword in c?

738


How can you call a function, given its name as a string?

715


Explain union. What are its advantages?

620






What is function in c with example?

631


How many types of arrays are there in c?

596


Can one function call another?

629


When should the volatile modifier be used?

688


What is the difference between functions getch() and getche()?

624


Explain how can you be sure that a program follows the ansi c standard?

866


What is sizeof int?

639


What is an auto variable in c?

759


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

676


How can I invoke another program or command and trap its output?

619