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 extern variables in c?
Explain the difference between call by value and call by reference in c language?
What is keyword with example?
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'); }
What are the advantages of using Unions?
How do we make a global variable accessible across files? Explain the extern keyword?
Why can’t constant values be used to define an array’s initial size?
I came across some code that puts a (void) cast before each call to printf. Why?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
Describe the difference between = and == symbols in c programming?
Which node is more powerful and can handle local information processing or graphics processing?
What is const and volatile in c?
How can this be legal c?
disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit
What is string function c?