#include<stdio.h>#include<stdlib.h>struct stacktype{ int data; struct stacktype *link;};typedef struct stacktype stack;int push(stack **top,int x){ stack *p; p=(stack *)malloc(sizeof(stack)); if(p==NULL) { printf("Memory alloc failed\n"); exit(-1); } p->link=...