single variable stack

Discussion in 'C' started by sumesh.1988, Aug 31, 2008.

  1. sumesh.1988

    sumesh.1988 New Member

    Joined:
    Aug 27, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    hi friends,
    Can u tell me how a C code cane written using single pointer variable.
    void *ptr;
    void main()
    {
    }
    push()
    {
    }
    pop()
    {
    }
    isempty()
    {
    }
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,376
    Likes Received:
    388
    Trophy Points:
    83
    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.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice