Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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



what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

Answer / dipendra

i think it will print the 2, and some garbage value.

Is This Answer Correct ?    10 Yes 0 No

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

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

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

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

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

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

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

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

what will be the output of "printf("%d%d",scanf("%d% d",&a,&b))&qu..

Answer / nilambuja

the output will be what value of a and b...

Is This Answer Correct ?    2 Yes 8 No

Post New Answer

More C Interview Questions

why programming language C is still used in operating system's kernel??

1 Answers   Wipro,


How do you do dynamic memory allocation in C applications?

0 Answers  


What is an array? What the different types of arrays in c?

0 Answers  


What is the difference between declaring a variable by constant keyword and #define ing that variable?

1 Answers  


Why pointers are used in c?

0 Answers  


What is multidimensional arrays

0 Answers  


What does extern mean in a function declaration?

4 Answers  


What is calloc in c?

0 Answers  


how does the C compiler interpret the following two statements p=p+x; q=q+y; a.p=p+x; q=q+y b.p=p+xq=q+y c.p=p+xq; q=q+y d.p=p+x/q=q+y

4 Answers   TCS,


Can true be a variable name in c?

0 Answers  


Explain how do you search data in a data file using random access method?

0 Answers  


Where are c variables stored in memory?

0 Answers  


Categories