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

Differentiate between content and structural words.

0 Answers   Mahatma Gandhi University,


Attempt a brief explanation about the scope of English language education at school and college levels.

0 Answers   Mahatma Gandhi University,


which one is correct and why - 900 Litre or Litres

8 Answers   RRB,


plz send me last 10 years bank clerk papers for obc clerk paer preparation

0 Answers  


question papers of state bank of India as the post of clerk

0 Answers   State Bank Of India SBI,


i want perot system question

1 Answers  


(a)Give the synonyms of the following words (i) Joy (ii) Inert (iii) Jolly

3 Answers   Geometric Software,


Hi, The Following synonyms asked at TCS test.. 1. To merry = 2.To Alienate = 3.To Solicit = 4.To Heep = 5.Cargo = 6.Momentary = 7.Volume = 8.To Veer = 9.To Admonish= 10. To Meager = 11. To lattitude= 12. Latent = 13. To Covet = 14. To Discretion = 15. Potential = 16. To Emancipate= 17. To Wethargy= 18. To Concur = 19. To Confiscate = 20. To Dispel = 21. Baffle = 22. Subsidise = 23. Misery = 24. Pretentrous = 25. Tranquil = 26.Ellace= 28.Rinaile= 29.Obstinate= 30.Hover = 31.Caprice= 33.Belate = 34.Brim = 35.Divulge= 36.Lamont= 37.Bileaf= 38. Embrace = 39.Adhesive = 40. Miserable = pls. Post the answers for the above not in total..what ever u knows..thanks in advance..

11 Answers   Satyam, TCS,


why people likes to work in automobile & automotive industry?

2 Answers   MCC,


please e-mail me rbi grade - b officers exam old question papers

0 Answers  


SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 32

1 Answers  


SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST-9

1 Answers  


Categories