single variable stack

sumesh.1988's Avatar, Join Date: Aug 2008
Newbie Member
hi friends,
Can u tell me how a C code cane written using single pointer variable.
void *ptr;
void main()
{
}
push()
{
}
pop()
{
}
isempty()
{
}
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Can you please clarify what you are looking for because having the variables depends on what you are trying to write and nothing that corresponds to any syntactical error for not having a pointer.