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

main()
{
int a,b;
printf("%d,%d",scanf("%d%d",&a,&b));
}


=> do u mean above program's output...
=>output will be:2,whatever you enter value for b.
=>because scanf is a library fn which will return how many
arguements it processes, and second value
you are right mr.Satya but i found my self unable to
understand that for the first time scanf returns the no of
successful matches but how for the second time it returns
the value of 'b'.while a function should return the
same 'r' value every time.

Answer Posted / gulam sarwar chuwdhury

The output :2,the value of b

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the Difference between the New and Malloc keyword.

1079


What is identifiers in c with examples?

1118


Are local variables initialized to zero by default in c?

984


Explain main function in c?

1045


Explain goto?

1094


What is string function c?

968


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1170


Can you write a programmer for FACTORIAL using recursion?

985


Explain how can you tell whether a program was compiled using c versus c++?

1054


What are types of functions?

975


Who invented b language?

1340


What are the 3 types of structures?

980


List some applications of c programming language?

901


what is the different bitween abap and abap-hr?

2217


Why do we use int main instead of void main in c?

1100