/*stack program*/
#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
int s[10],top=-1,item,n=5;
void push()
{
if (top==n-1)
{
printf("stack is full, so pushing not possible\n");
getch();
return;
}
printf("ener the item to be pushed\n");
scanf("%d",&item);
top=top+1;
s[top]=item;
}
void...
on entering no. above 30 it has some problems. If I go above 30 it shows wrong negative ans.
:?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?: :?:
Hi Guest we just wanted to alert you to a major change in the forum. We will no longer be allowing the posting of outgoing links. Please use the attachment feature to attach media to your posts.