what will be the output of "printf("%d%d",scanf("%d%
d",&a,&b))".provide an explation regarding the question
Answer Posted / manish soni bca 3rd year jaipu
what is output of this program
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
a=10;
b=20;
printf("%d %d");
getch();
}
it gives the 20 10;
bcoz printf fn return which value,
read recently ,reversely.
so above question we easly explain.
that;-
so scanf fn return which value process it.
scanf fn return 2 and after return value of b.
manish soni bca 3rd year jaipur tagore college
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is difference between static and global variable in c?
How do you define a string?
Write a code to determine the total number of stops an elevator would take to serve N number of people.
any "C" function by default returns an a) int value b) float value c) char value d) a & b
How do I get an accurate error status return from system on ms-dos?
Differentiate fundamental data types and derived data types in C.
Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent
What is openmp in c?
What are variables and it what way is it different from constants?
Explain how can you check to see whether a symbol is defined?
Can a pointer be static?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What are the advantages and disadvantages of pointers?
What is sizeof int in c?
How do I read the arrow keys? What about function keys?