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 the auto keyword good for?
What are Macros? What are its advantages and disadvantages?
What are the types of data types and explain?
Write a program to know whether the input number is an armstrong number.
How do we declare variables in c?
please give me some tips for the placement in the TCS.
Differentiate between new and malloc(), delete and free() ?
How can you read a directory in a C program?
Write a program to check armstrong number in c?
What do the functions atoi(), itoa() and gcvt() do?
How do I convert a string to all upper or lower case?
What is a union?
If I have a char * variable pointing to the name of a function ..
find out largest elemant of diagonalmatrix
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()