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
What will be the outcome of the following conditional statement if the value of variable s is 10?
What are types of structure?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are the 4 types of programming language?
What is #include stdlib h?
Why is structure padding done in c?
i have a written test for microland please give me test pattern
What are integer variable, floating-point variable and character variable?
Why c is called object oriented language?
Explain what is the benefit of using #define to declare a constant?
What is #include called?
Write a program that accept anumber in words
What do mean by network ?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
What is structure padding and packing in c?