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

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


Please Help Members By Posting Answers For Below Questions

What are the advantages of c preprocessor?

1209


Explain what is the difference between functions getch() and getche()?

989


What is sizeof int in c?

1002


Why can arithmetic operations not be performed on void pointers?

982


How many types of errors are there in c language? Explain

925


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1074


a parameter passed between a calling program and a called program a) variable b) constant c) argument d) all of the above

1069


What is define directive?

1073


What is the difference between formatted&unformatted i/o functions?

1006


What is a dynamic array in c?

1070


What are all different types of pointers in c?

957


Why shouldn’t I start variable names with underscores?

1006


What is the value of h?

987


What is c value paradox explain?

1019


How can I read/write structures from/to data files?

923