Ds 12
Ds 12
case 2:
pop(stack);
break;
case 3:
display(stack);
break;
case 4:
return 0;
default:
printf("Invalid choice\n");
}
} while(choice!=4);
}
Sample Output
Result
The program was executed and the output verified.