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
Write a C program to count the number of email on text
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
What is identifiers in c with examples?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What is || operator and how does it function in a program?
Why c is known as a mother language?
in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above
What is a dynamic array in c?
Are the variables argc and argv are local to main?
Differentiate between a for loop and a while loop? What are it uses?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
What the advantages of using Unions?
Can we initialize extern variable in c?
What is the difference between c &c++?
What is the use of printf() and scanf() functions?