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 |
english 10 letter word in which 4th letter is d 6th is a and last is s??
Tolerate synonym?
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 16
dr sir pl send me last 5 years rbi officers exam papers with answers
why should we pay higher(15000 salary ?justify?
Interview questions for library science
2 Answers AIIMS, College School Exams Tests, IIM, Library, Madhumita Garments,
plz forward me lakshmi vilas bank previous clerk papers or any model papers
4 Answers Lakshmi Vilas Bank, LVB,
Explain briefly Gardner’s theory of Multiple Intelligence.
0 Answers Mahatma Gandhi University,
which langage is called as mother of english?
what is the difference between endurance, strength and flexibility?
how do you handle stress
please send some sample or previous papers of karur vysya bank engineering recruitment