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

what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}

Answer Posted / sha

The first output would be the number of values scanned by
scanf, i.e. 2. I compiled the code and the second output
seems to be the address the second input given by user.

Input: 4 5
Output: 2 1242772

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between union and structure in c?

1157


Explain how to reverse singly link list.

1138


What does do in c?

1039


Why static is used in c?

1089


What are the keywords in c?

1122


Explain how can I remove the trailing spaces from a string?

1043


Why are all header files not declared in every c program?

1097


What is the g value paradox?

1167


What is the use of #include in c?

1079


What are shell structures used for?

1046


What is the difference between #include and #include 'file' ?

1050


What is a good data structure to use for storing lines of text?

1082


What are the types of variables in c?

1018


Explain what are reserved words?

1101


What is the full form of getch?

1268