What the scanf function do?what is the output for
if(scanf("%d",&i)==1)//input value is 10
{
printf("hi");
}
else
{
printf("bye");
}

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

linux advantages and important questions &anwers

2668


what has given you the greatest sense of accomplishment in life

2179


Suggest measures to improve the speaking skill of students

885


you have to establish a cosmetic industry in India & how you would like to expand in the middle east ?what role of culture will be there in your HR practices n also highlight an employee management issue you would face n give remedies as to now would you tackle those issues.

1930


who is the writeof the Tulja novel

2001


Write any four activities that can be given as composition work.

938


tell your self image?

1761


When u loved someone and he/she is trying to throw a grenade in crowed place. What you will do ? you will kill him/her ? For this sentence we need to write an essay altest 1 page. Please help me in this by posting the answers to sruthi_53@yahoo.co.in

1801


how to introduce ourself ?

1958


Problems on Trains, Time and Distance, Problems on Numbers, Calendar

1678


English spelling is a national misfortune for England and an international misfortune for the rest of the world.” How far do you agree with this? Illustrate with spelling rules for learning correct spelling.

1335


Differentiate between content and structural words.

877


What is the exact information do you require to uplift your performance?

1775


I have applied for the post of Executive Interns in RBI.My qualification is B tech Degree in CSE.Could u plz send me the sample question papers for the test?

2024


Which of the following OSPF commands, when used together, will put the network 192.168.10.0/24 into OSPF area 0?

2429