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

Write a C program to count the number of email on text

1965


.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }

1369


What is identifiers in c with examples?

1242


any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above

1102


What is || operator and how does it function in a program?

1161


Why c is known as a mother language?

1130


in multiple branching construct "default" case is a) optional b) compulsarily c) it is not include in this construct d) none of the above

1119


What is a dynamic array in c?

1219


Are the variables argc and argv are local to main?

1360


Differentiate between a for loop and a while loop? What are it uses?

1234


What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?

1103


What the advantages of using Unions?

1291


Can we initialize extern variable in c?

1184


What is the difference between c &c++?

1208


What is the use of printf() and scanf() functions?

1189