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 use of printf() and scanf() functions?

1136


Explain logical errors? Compare with syntax errors.

1079


what is a function method?give example?

2375


What are reserved words with a programming language?

1143


When do we get logical errors?

1132


What are the advantages of external class?

1072


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2189


What is a function simple definition?

1103


What are the disadvantages of c language?

1201


Explain how can I open a file so that other programs can update it at the same time?

1122


What is a dynamic array in c?

1165


Is main an identifier in c?

1148


What are the types of arrays in c?

1182


Which function in C can be used to append a string to another string?

1225


What is fflush() function?

1141