what will be the output of "printf("%d%d",scanf("%d%
d",&a,&b))".provide an explation regarding the question
Answers were Sorted based on User's Feedback
Answer / dipendra
i think it will print the 2, and some garbage value.
| Is This Answer Correct ? | 10 Yes | 0 No |
Answer / amegha
scanf() returs the number of vlaues read successfully. so
heree the pritf() prints the value that is returned by the
scanf(), ie 2.(a,b). so the output will be 2 and some
garbage value.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / 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 |
Answer / manish soni bca 3rd year jaipu
if we enter
1234
5678
answer is
2 5678
plz tell how
| Is This Answer Correct ? | 2 Yes | 1 No |
Answer / akki166786
you are right mr. manish that it will print 2 and value of
'b' but i also dont know why it is printing the value of 'b'..
| Is This Answer Correct ? | 1 Yes | 0 No |
Do you know the difference between exit() and _exit() function in c?
How is = symbol different from == symbol in c programming?
main() { int i=0; while(+(+i--)!=0) i-=i++; printf(i); }
main() { int ptr[] = {1,2,23,6,5,6}; printf("%d",&ptr[3]-&ptr[0]); }
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
what is the difference between getch() and getchar()?
WAP to accept rollno,course name & marks of a student & display grade if total marks is above 200?
What is #line?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
2 Answers HCL, IBM, Satyam, Vimal, Vimukti Technologies,
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
WHAT IS MAXIMUM SIZE OF AN ARRAY IN C LANGUAGE?
8 Answers Carphone Warehouse, IBM, SAS,
write a program to insert an element at the specified position in the given array in c language