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 are the advantages of c preprocessor?
Explain what is the difference between functions getch() and getche()?
What is sizeof int in c?
Why can arithmetic operations not be performed on void pointers?
How many types of errors are there in c language? Explain
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()
a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above
What is define directive?
What is the difference between formatted&unformatted i/o functions?
What is a dynamic array in c?
What are all different types of pointers in c?
Why shouldn’t I start variable names with underscores?
What is the value of h?
What is c value paradox explain?
How can I read/write structures from/to data files?