banner

Display Operation in Stack with array.

void display()
{
int i;
clrscr();
printf("Stack Data is:-\n");
if(end==-1)
{
printf("Stack is Empty");
}
for(i=0;i<=end;i++)
{
printf("%d, ",a[i]);
}
getch();
}