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
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 |
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 |
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 |
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
plz send me last 10 years bank clerk papers for obc clerk paer preparation
question papers of state bank of India as the post of clerk
0 Answers State Bank Of India SBI,
i want perot system question
(a)Give the synonyms of the following words (i) Joy (ii) Inert (iii) Jolly
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..
why people likes to work in automobile & automotive industry?
please e-mail me rbi grade - b officers exam old question papers
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 32
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST-9