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

Write any two linguistic principles of language learning.

0 Answers   Mahatma Gandhi University,


what is inflation

2 Answers  


smog combination? 1. water & watervapour 2. for and water 3. smoke & water 4. None of these

6 Answers   RRB,


SQL> desc product1; Name Null? Type ----------------------------------------- -------- ---------------------------- PROD_ID NOT NULL NUMBER(38) PROD_QTY NUMBER(38) SQL> select * from product1; PROD_ID PROD_QTY ---------- ---------- 123 300 124 200 SQL> desc pmsales; Name Null? Type ----------------------------------------- -------- ---------------------------- PROD_ID NOT NULL NUMBER(38) PMS_QTY NUMBER(38) SQL> select * from pmsales; PROD_ID PMS_QTY ---------- ---------- 123 100 124 200 SQL> create view pmas_prod 2 as select p.prod_id,p.prod_qty,pm.pms_qty 3 from product1 p,pmsales pm 4 where p.prod_id=pm.prod_id; View created. SQL> update pmas_prod 2 set prod_qty=prod_qty-pms_qty; 2 rows updated. SQL> select * from product1; PROD_ID PROD_QTY ---------- ---------- 123 200 124 0 SQL> insert into pmas_prod values(125,400,200); insert into pmas_prod values(125,400,200) * ERROR at line 1: ORA-01776: cannot modify more than one base table through a join view Q How can we insert into this table ?

0 Answers  


i need R S Agrawal objective general english...can somebody provide the path to download that book/

0 Answers  


please send me ssc tax assistant exam. last three year model paper my email ID: raviraj.235@rediffmail.com thanks

4 Answers   SSC,


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

1 Answers  


what did you understand is the purpose of business objectives and how are these influenced by a study of PESTLE and affected by a considersation of SWOT

0 Answers  


want to know about the group II previous papers

0 Answers  


how to use chatting and sending mail from yahoo massenger & gmail ? 2.if u have any more this type of site plz tell me?

1 Answers  


state two major differences between the practice of personnel management and human resource management. irrespective of these is practised what needs to be measured?

0 Answers  


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

1 Answers  


Categories