how does the for loop work actually..suppose for the
following program how it ll work plz explain to me
for(i=5;i>=0;i--)
prinf(i--);
Answer Posted / preshit
o/p will b
4 2 0
bcoz first i=5 ok then condition after taht ok so printf
will decrement i, so o/p 4
then it decrement it twice for 2 times
OR
it will give syntax error if printf(i--)is wrong
| Is This Answer Correct ? | 0 Yes | 7 No |
Post New Answer View All Answers
Are bit fields portable?
Explain how do you print an address?
ATM machine and railway reservation class/object diagram
What is your stream meaning?
What is identifiers in c with examples?
What does stand for?
What are dangling pointers? How are dangling pointers different from memory leaks?
How can I rethow can I return a sequence of random numbers which dont repeat at all?
Differentiate between calloc and malloc.
Explain what is a stream?
Is null always defined as 0(zero)?
Do you know the difference between exit() and _exit() function in c?
hi any body pls give me company name interview conduct "c" language only
what are the advanced features of functions a) function declaration and prototypes b) calling functions by value or by reference c) recursion d) all the above
Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.