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 output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }
application attempts to perform an operation?
Where define directive used?
What is meant by high-order and low-order bytes?
how to capitalise first letter of each word in a given string?
Is it possible to have a function as a parameter in another function?
What's the best way of making my program efficient?
What is the use of printf() and scanf() functions?
Write a program to swap two numbers without using third variable?
Can a pointer be static?
Is printf a keyword?
What is the maximum no. of arguments that can be given in a command line in C.?
how many types of operators are include in c language a) 4 b) 6 c) 8 d) 12
What is function and its example?
Is it better to use a macro or a function?