Describe how a single array can be used to implement two stacks.
#include<stdio.h> #include<stdlib.h> #define size 10 /* Macro definition */ int top1 = -1, top2 = size; /* Global variable declaration */ int a[size]; int main() { int ch, n1, n2; while (1) { printf("\n=====================\n"); printf("-- Menu Selection --|\n"); printf("=====================\n"); printf("1. Push |\n"); printf("2. Pop |\n"); printf("3. Display |\n"); printf("0. Exit |\n"); printf("=====================\n"); printf("Enter choice(0-3):"); scanf("%d", &ch); switch (ch) { case 1: printf("Enter n1:"); ...