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 do you mean by stack program?
Get me an example stack program?

Answer Posted / manoj singh

stac program is called whose as provide the lifo mens last input first output .when we putdown the value in node thats called pop and flow out the value thats called push.

char stack[10]
int top=-1;
void push(char d)
{
if(to==9)
printf("stack is full");
else
stack[++top]=d;
}
char pop()
{
if(top==-1)
return('\0')
else
return(stack[top--]);
}
//stack is create both performance pop and push.

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between a constructor and a destructor?

1252


Why polymorphism is used in oops?

1046


What do you mean by variable?

1034


how to get the oracle certification? send me the answer

2152


Advantage and disadvantage of routing in telecom sector

1302


write a program to find 2 power of a 5digit number with out using big int and exponent ?

2371


What is encapsulation in oops?

1005


what are the ways in which a constructors can be called?

2125


What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?

2126


What are oops methods?

1000


What are the 5 oop principles?

1121


What is object in oop with example?

1227


What is the highest level of cohesion?

1042


What are the three main types of variables?

1122


Is abstract thinking intelligence?

1046