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 will be the output of" printf("%d%d",scanf("%d%
d",&a&b));"

Answers were Sorted based on User's Feedback



what will be the output of" printf("%d%d",scanf("%d% d",&a&b));&qu..

Answer / satya

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

Is This Answer Correct ?    3 Yes 1 No

what will be the output of" printf("%d%d",scanf("%d% d",&a&b));&qu..

Answer / pusuluri leela prasad

first it will return no of values that scanf can return and
second it will return first value of the scanf statement

Is This Answer Correct ?    1 Yes 0 No

what will be the output of" printf("%d%d",scanf("%d% d",&a&b));&qu..

Answer / praveen

No, The output will not be 2......The exact output is "It
will take the garbage value"

Is This Answer Correct ?    0 Yes 1 No

what will be the output of" printf("%d%d",scanf("%d% d",&a&b));&qu..

Answer / bhavani

=>output will be:2,whatever you enter value for a.
=>because scanf is a library fn which will return how many
arguements it processes, and first value

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More C Interview Questions

What are the languages are portable and platform independent?Why they are like that?

1 Answers   Excel, Satyam,


write a c program to find the probability of random numbers between 1-1000

0 Answers   ADS,


Write a program to reverse a given number in c?

0 Answers  


What is the right type to use for boolean values in c?

0 Answers  


how to go with this?

1 Answers   Wipro,


what is the use of keyword volatile??

4 Answers   LG Soft,


int a=0,b=2; if (a=0) b=0; else b=*10; What is the value of b ?

6 Answers   TCS,


how the size of an integer is decided? - is it based on processor or compiler or OS?

19 Answers   HCL, JPR, Microsoft, nvidia,


What is C language Terminator?

15 Answers   TCS,


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,


what is use of loop?

10 Answers   Infosys,


Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?

0 Answers  


Categories