Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Stack

Home > Programs > Stack

7 / 5

Write a push() and pop() implementation using linked list in C.

Answer:

#include 
#include 
#include 
using namespace std;
struct node
{
    int info;
    struct node *ptr;
}*top,*top1,*temp;
void push(int data);
void pop();
void create();
int count = 0;
void main()
{
    int no, ch, e;
    coutinfo);
    free(top);
    top = top1;
    count--;
}

Asked In :: PEOL

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here: