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
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.
What are the application of void data type in c?
Is null a keyword in c?
How can you call a function, given its name as a string?
Explain union. What are its advantages?
What is function in c with example?
How many types of arrays are there in c?
Can one function call another?
When should the volatile modifier be used?
What is the difference between functions getch() and getche()?
Explain how can you be sure that a program follows the ansi c standard?
What is sizeof int?
What is an auto variable in c?
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
How can I invoke another program or command and trap its output?