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 the value of c?

1132


What is meant by inheritance?

1153


What is the use of linkage in c language?

1102


given post order,in order construct the corresponding binary tree

2854


What is the benefit of using #define to declare a constant?

1150


What are volatile variables in c?

995


What is pointer and structure in c?

1278


largest Of three Number using without if condition?

1667


Wt are the Buses in C Language

3262


Why do we write return 0 in c?

1128


What is #error and use of it?

1347


What are logical errors and how does it differ from syntax errors?

1351


What is clrscr in c?

1171


What is the difference between memcpy and memmove?

1086


Should I learn c before c++?

1298




https://www.allinterview.com/contact.php">Contact Us

Copyright © 2005-2025 ALLInterview.com. All Rights Reserved.