what is the output of
printf("%d",(scanf("%d",10));
Answer Posted / umesh
#include<stdio.h>
int main ()
{
int c;
printf("%d",(scanf("%d",&c)));
return 0;
}
in this case return 1 instead of entering any value as input.
printf("%d",(scanf("%d",10)));
in this case simply generates a run time error. bcoz Since scanf always expects a variable( address) to store the value.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
How can I invoke another program or command and trap its output?
What do you mean by scope of a variable in c?
What is a const pointer in c?
How does pointer work in c?
What are variables and it what way is it different from constants?
What is string length in c?
What are the usage of pointer in c?
Explain what is operator promotion?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
Explain what are preprocessor directives?
Explain how do you determine whether to use a stream function or a low-level function?
What does nil mean in c?
How to throw some light on the b tree?
What are the types of type specifiers?
Dont ansi function prototypes render lint obsolete?