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...

int a=1,b=2,c=3;
printf("%d,%d",a,b,c);
What is the output?

Answer Posted / jaya prakash

1,2

because arguments of functions stored in stock
in stock stored as
"%d,%d"
a
b
c
in printf fn,
args popped out from stack
first "%d,%d" is popped
it find two int involved by %d in the control string
so two more args popped out
a,b
after popping the addr's then the values in that location
printed.(1,2)

Is This Answer Correct ?    28 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are local variables c?

956


Hai what is the different types of versions and their differences

1896


Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings

2692


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

1067


What is string function in c?

945


What is declaration and definition in c?

1012


What is the difference between text and binary modes?

1121


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

974


What are the various types of control structures in programming?

1003


Can a pointer be static?

1016


Write a program with dynamically allocation of variable.

1065


Explain modulus operator. What are the restrictions of a modulus operator?

967


Dont ansi function prototypes render lint obsolete?

1060


What is the difference between scanf and fscanf?

1195


What are the advantages of using Unions?

1065