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 extern variables in c?

965


Explain the difference between call by value and call by reference in c language?

1076


What is keyword with example?

1034


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

1151


What are the advantages of using Unions?

1088


How do we make a global variable accessible across files? Explain the extern keyword?

1848


Why can’t constant values be used to define an array’s initial size?

1341


I came across some code that puts a (void) cast before each call to printf. Why?

1175


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1226


Describe the difference between = and == symbols in c programming?

1325


Which node is more powerful and can handle local information processing or graphics processing?

1286


What is const and volatile in c?

1005


How can this be legal c?

1067


disply the following menu 1.Disply 2.Copy 3.Append; as per the menu do the file operations 4.Exit

2037


What is string function c?

987