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
Suggest any two synthetic methods of teaching reading.
which of the following places was the venue of the 1999 Miss World contest.
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 ?
Logical appitude
Differentiate between skimming and scanning.
The word inference relates to ?
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.
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
Tell me about a time when you really had to pay attention to what someone else was saying, actively seeking to understand their message
2.For the Delta- Wye transformation in given figure, the value of the resistance R is.
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?
why do used bucolzh relay in 1000kva transformer
please e-mail me rbi grade - b officers exam old question papers
Define universal grammar.
Mention any two principles of behaviourism with regard to language learning.