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...

FIND THE OUTPUT IF THE INPUT IS 5 5.75
void main()
{
int i=1;
float f=2.25;
scanf("%d%f",&i,&f);
printf("%d %f",,i,f);
}
ANSWER IS 5 AND 2.25 WHY?

Answer Posted / reshma pawar

there is error in
printf("%d %f",,i,f);
because 2 (,) operators are used
an if operator is removed then output will be
5 5.750000

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is volatile variable in c with example?

997


What are local static variables? How can you use them?

1081


How do you print only part of a string?

965


What are loops in c?

953


What is the use of bitwise operator?

1068


Explain how do you convert strings to numbers in c?

1022


How can I read and write comma-delimited text?

1010


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

2231


develop algorithms to add polynomials (i) in one variable

2109


how to capitalise first letter of each word in a given string?

1871


What is integer constants?

1015


Explain how do you determine whether to use a stream function or a low-level function?

1026


What is ponter?

1224


I need previous papers of CSC.......plz help out by posting them.......

2247


What is a protocol in c?

947