Question: Data Structure & Algorithm struct Faculty { int id; char name[30]; char status[10]; //status permanent or visiting Faculty * next; }; Assume we have three
Data Structure & Algorithm
struct Faculty { int id; char name[30]; char status[10]; //status permanent or visiting Faculty * next; }; Assume we have three stacks S, V and P. S is a stack having mix data of visiting and permanent faculty members, V is empty and for visiting faculty memebrs and P is also empty for permanent faculty members. Using primitive functions of stack write a C++ code which reads entire data from S and write on respective stack V or P.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
