a=0;
while(a<5)
printf("%d\n",a++);
how many times does the loop occurs?
a.infinite
b.5
c.4
d.6
Answer Posted / vikram
the output will be:
0
1
2
3
4
hence the loop will be executed 5 times,hence the answer is b
| Is This Answer Correct ? | 17 Yes | 2 No |
Post New Answer View All Answers
What is the value of a[3] if integer a[] = {5,4,3,2,1}?
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Which type of language is c?
What is far pointer in c?
Is there anything like an ifdef for typedefs?
What is the right type to use for boolean values in c?
write a program to generate address labels using structures?
Why & is used in scanf in c?
What is the difference between %d and %i?
What is the value of h?
Which control loop is recommended if you have to execute set of statements for fixed number of times?
How can I make sure that my program is the only one accessing a file?
What is scanf_s in c?
Differentiate between functions getch() and getche().
Why use int main instead of void main?