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 / poornima

Actually, Stack follows Last In First Out(LIFO) style.No
doubt in tht.
In code, there is only two format specifier(ie., 2 %d) tht
will corresponds to first two variables.
Elements are pushed from right to left fashion in variable
declaration part.
In stack, c is bottom-most element & a is top-most element.
so,by code a is popped first then b.so, it will print 1,2.

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there any demerits of using pointer?

1052


Explain what is the general form of a c program?

1074


Define Spanning-Tree Protocol (STP)

1113


What is c mainly used for?

1046


a c code by using memory allocation for add ,multiply of sprase matrixes

2778


Linked list is a Linear or non linear explain if linear how it working as a non linear data structures

2163


What is the symbol indicated the c-preprocessor?

1227


What is a wrapper function in c?

1105


What is cohesion in c?

965


What is the difference between null pointer and wild pointer?

1178


What is calloc in c?

1126


How can I call fortran?

1028


How can I do graphics in c?

1012


What is maximum size of array in c?

1027


What is an operator?

1061