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 the scanf function do?what is the output for
if(scanf("%d",&i)==1)//input value is 10
{
printf("hi");
}
else
{
printf("bye");
}

Answers were Sorted based on User's Feedback



What the scanf function do?what is the output for if(scanf("%d",&i)==1)//input value ..

Answer / santhi

bye

Is This Answer Correct ?    8 Yes 3 No

What the scanf function do?what is the output for if(scanf("%d",&i)==1)//input value ..

Answer / vishal pitaliya

in case of integer value scanf function
return
1 if value is +ve
0 if negative

so 10 is +ve it would return 1

and in the if statement it will compare with another value
specied in the if statement .
so condition is true 1==1
so output is hi
THANK YOU.........

Is This Answer Correct ?    1 Yes 0 No

What the scanf function do?what is the output for if(scanf("%d",&i)==1)//input value ..

Answer / harshitha

scanf function stores the value in a particular address.
and the output for the above program is "bye".

Is This Answer Correct ?    2 Yes 2 No

What the scanf function do?what is the output for if(scanf("%d",&i)==1)//input value ..

Answer / arvind

scanf is a standard input function in "C" language. help of
this function we input values. the ans. of avove if
statement is bye

Is This Answer Correct ?    1 Yes 1 No

What the scanf function do?what is the output for if(scanf("%d",&i)==1)//input value ..

Answer / srinivas

Ans: hi

Description:scanf() return number of succesful reading from
STDIN.in this case 1 input read from console.

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More English Interview Questions

Q. what is love?

12 Answers  


hi friends i need paper presentation for networking managerment, virtual reality,

0 Answers  


When you see a cell with a green triangle in the left top corner, what does this siginfy?

3 Answers   eClerx,


The report is _______ to show better than expected results. a) Necessary b) Possibly c) Clearly d) likely

9 Answers   eClerx, Infosys,


what is the importance of colours in life?

150 Answers   Colors, Genpact, GU, HCL, HSBC, IBM, IELS, Infosys, MFM, Microsoft, TATA, TCS, Wipro,


all model paper of RRB examination of assistant station master of secunderabad

4 Answers   ASM, RRB, TATA,


tell me about your what did work in unit?

1 Answers   Infosys, TCS,


my tds deduction is 654 per month,then how much investment i hve to show ?

0 Answers  


I have done with my engineering and i'm looking forward to prepare for civils.I've heard R C reddy is the best coaching centre in hyderabad for civils but are they any batches for civils coaching in R C reddy like other s/w coaching centres. please let me know about dat.

0 Answers  


what is the most importent in my life now

9 Answers  


Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane wears black shoes she will not wear: a) red stockings. b) a blue skirt. c) a white blouse. d) blue stockings. e) a sky blue blouse. 8) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane is color blind and is unable to determine what outfits went well together, how many possible clothing combinations could she have? a) 24 b) 32 c) 36 d) 44 e) 48 9) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. If Jane wears a brown skirt and a white blouse, she could: a) not wear blue stockings. b) not wear brown shoes. c) not wear black shoes. d) wear blue stockings. e) wear red stockings. 10) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. Jane buys a gray scarf. If she wears the new scarf, then she could: a) not wear blue stockings. b) not wear brown stockings. c) not wear black shoes. d) wear a white blouse. e) wear black stockings. 11) Jane works at a fashion design company, and is having problems getting dressed for work. She refuses to wear any color combination that does not go well together as many of her clients may look down upon this. She has two pairs of skirts, brown and blue; three blouses, white, sky blue, and gray; four pairs of stockings, red, black, brown, and blue; and two pairs of shoes, black and brown. The blue skirt cannot be worn with red or brown stockings. Gray does not go well with brown. Black does not go well with brown. Jane will never wear: a) blue and red together. b) white and red together. c) gray and blue together. d) white and black together. e) white and red together.

5 Answers   TCS, Wipro,


tell mee sume thing about ur self

22 Answers   IBM, Satyam, Tech Mahindra, Wipro,


Categories