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
why programs in c are running with out #include
Which type of language is c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
Why is extern used in c?
What is an example of structure?
In which language linux is written?
Explain how can a program be made to print the line number where an error occurs?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
Why cant I open a file by its explicit path?
I have seen function declarations that look like this
What are identifiers c?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
Explain the use of 'auto' keyword
What do you mean by a local block?