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 |
Write any two linguistic principles of language learning.
0 Answers Mahatma Gandhi University,
what is inflation
smog combination? 1. water & watervapour 2. for and water 3. smoke & water 4. None of these
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 ?
i need R S Agrawal objective general english...can somebody provide the path to download that book/
please send me ssc tax assistant exam. last three year model paper my email ID: raviraj.235@rediffmail.com thanks
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST-6
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
want to know about the group II previous papers
how to use chatting and sending mail from yahoo massenger & gmail ? 2.if u have any more this type of site plz tell me?
state two major differences between the practice of personnel management and human resource management. irrespective of these is practised what needs to be measured?
SSC ? Grade ?D? Exam ENGLISH CLOSET TEST TEST ? 18