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

How can I implement sets or arrays of bits?

1095


Explain how to reverse singly link list.

1207


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2144


What is the translation phases used in c language?

1176


Explain the difference between the local variable and global variable in c?

1135


In a switch statement, explain what will happen if a break statement is omitted?

1128


What is a sequential access file?

1245


What is a list in c?

1087


How do you initialize pointer variables?

1155


Where does the name "C" come from, anyway?

1218


What is the difference between abs() and fabs() functions?

1182


What are the 3 types of structures?

1067


Do pointers store the address of value or the actual value of a variable?

1127


while initialization of array why we use a[][2] why not a[2][]...?

2404


If I have a char * variable pointing to the name of a function ..

1235