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

english 10 letter word in which 4th letter is d 6th is a and last is s??

1 Answers  


Tolerate synonym?

4 Answers   WNS, Yardi,


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

1 Answers  


dr sir pl send me last 5 years rbi officers exam papers with answers

0 Answers  


why should we pay higher(15000 salary ?justify?

4 Answers   HCL,


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?

2 Answers  


what is the difference between endurance, strength and flexibility?

6 Answers  


how do you handle stress

1 Answers   Cognizant, Ocwen,


please send some sample or previous papers of karur vysya bank engineering recruitment

0 Answers   Godrej,


Categories