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
explain sub-type and sub class? atleast u have differ it into 4 points?
What are different oops concepts?
Why do we use polymorphism in oops?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What are the components of marker interface?
why reinterpret cast is considered dangerous?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
What is meant by multiple inheritance?
Why multiple inheritance is not possible?
Whats is abstraction in oops?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is static modifier?
What is destructor example?
What is ambiguity in inheritance?