what is the output for the code :
main()
{
int i,j;
printf("%d %d ",scanf("%d%d",&i,&j));
}
Answer Posted / varun
The Console will wait for two integer inputs.
After giving any two integer values, it will
return two values
1) no. of input i.e 2
2) Address of the first integer.
e.g
I have tested it with input-> 1,1 ; 2,9; 3,5; etc.....
For all it returns 2 3457158
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Hello. How to write a C program to check and display president party like if i type in the console "biden" and hit enter the output shoud be : "biden is democrat" and if i type "trump" and hit enter the output shoud be: "trump is republican"
What is preprocessor with example?
Explain what is the advantage of a random access file?
Explain how do you determine a file’s attributes?
What is 1f in c?
What is function pointer c?
which is conditional construct a) if statement b) switch statement c) while/for d) goto
Do character constants represent numerical values?
Describe the difference between = and == symbols in c programming?
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
How can I change the size of the dynamically allocated array?
Why does everyone say not to use scanf? What should I use instead?
what are the advantages of a macro over a function?
When should volatile modifier be used?
What is wild pointer in c with example?