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 are the differences between Structures and Arrays?
What is the difference between a string and an array?
What is the difference between new and malloc functions?
What is 1f in c?
How do you determine the length of a string value that was stored in a variable?
What is a static function in c?
In C language, a variable name cannot contain?
What is size of union in c?
What are header files why are they important?
What do you understand by normalization of pointers?
How can you determine the maximum value that a numeric variable can hold?
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Write a program to print fibonacci series using recursion?
What are derived data types in c?
What are lookup tables in c?