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");
}

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Suggest any two synthetic methods of teaching reading.

1081


which of the following places was the venue of the 1999 Miss World contest.

2195


The total weight of a tin and the cookies it contains is 2 pounds after some of the cookies are eaten, the tin and there remaining cookies weigh 0.8 pounds. What is the weight of the empty tin in pounds ?

2743


Logical appitude

1528


Differentiate between skimming and scanning.

1359


The word inference relates to ?

1086


The New Deal in America began in 1933 and included widespread bank reforms, unprecedented government infrastructure spending, and unparalleled expansion in the size of government. Some political commentators and economic historians contend that President Franklin Roosevelt's New Deal singlehandedly propelled the United States out of the Great Depression and into decades of uninterrupted prosperity. To support this claim, these economists note that during the years following 1933, GDP grew, unemployment shrunk, and optimism increased. Which of the following statements, if true, would most weaken the above argument? The considerable government expenditures and massive labor requirements engendered by America's entry into World War II in late 1941 helped employ Americans and grow GDP. The considerable debt burden that the government assumed to fund the New Deal sparked fear in the minds of some economists, investors, and businessmen. On average, GDP per capita fell and unemployment rose in many foreign countries during the years after President Roosevelt announced his New Deal. During 1939, the U.S. economy contracted sharply, unemployment jumped 5%, and America's optimism fell.

2195


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

1963


Tell me about a time when you really had to pay attention to what someone else was saying, actively seeking to understand their message

3142


2.For the Delta- Wye transformation in given figure, the value of the resistance R is.

3213


i have worked in a corparate bank for 1 year,now iam attending one interview which is a govt.undertaking bank. my queries is how to answer the question like 1) why you resigned your previous job? 2) what are your expectation in this job? 3)can we say private/govt,security,betterment?

2191


why do used bucolzh relay in 1000kva transformer

3306


please e-mail me rbi grade - b officers exam old question papers

2234


Define universal grammar.

1168


Mention any two principles of behaviourism with regard to language learning.

1170