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 open a file so that other programs can update it at the same time?
Can a variable be both static and volatile in c?
how can I convert a string to a number?
Can the curly brackets { } be used to enclose a single line of code?
What is the benefit of using const for declaring constants?
What are the valid places to have keyword “break”?
what is the different bitween abap and abap-hr?
What is #include stdlib h?
What is the right type to use for boolean values in c?
What is a pointer and how it is initialized?
Explain what is gets() function?
Write a program on swapping (100, 50)
Is a house a shell structure?
What are inbuilt functions in c?
What are identifiers and keywords in c?