Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

Are bit fields portable?

1155


Explain how do you print an address?

1143


ATM machine and railway reservation class/object diagram

5241


What is your stream meaning?

1227


What is identifiers in c with examples?

1169


What does stand for?

1079


What are dangling pointers? How are dangling pointers different from memory leaks?

1299


How can I rethow can I return a sequence of random numbers which dont repeat at all?

1188


Differentiate between calloc and malloc.

1260


Explain what is a stream?

1083


Is null always defined as 0(zero)?

1099


Do you know the difference between exit() and _exit() function in c?

1059


hi any body pls give me company name interview conduct "c" language only

2280


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

1120


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.

1682