Search:

Type: Posts; User: Shyam Raj

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    2,363

    @root: Hello root, thanks for your detailed...

    @root: Hello root, thanks for your detailed reply. Regarding the array implementation of stack, I do have an idea that stacks can be implemented that way - however I haven't tried it yet bcoz I want...
  2. Replies
    15
    Views
    2,363

    @Andreas - By specifying a void pointer, we can...

    @Andreas - By specifying a void pointer, we can push an element of any type isn't it? Like a char/int/float. The program needn't be changed everytime. That was the idea behind this. Is it wrong?
  3. Replies
    15
    Views
    2,363

    @root - you said try using a recursive function...

    @root - you said try using a recursive function to print the stack, and I think I've done it that way. How else can the stack be printed?
  4. Replies
    15
    Views
    2,363

    Andreas and root: Thanks for your comments: I...

    Andreas and root: Thanks for your comments: I modified it and now it's working fine. Below is the code:


    void print(STACK_NODE *temp)
    {
    if(temp == NULL)
    {
    return;
    ...
  5. Replies
    15
    Views
    2,363

    Can someone else help me with this?

    Can someone else help me with this?
  6. Replies
    15
    Views
    2,363

    @christop - That's exactly what I thought. But I...

    @christop - That's exactly what I thought. But I know no other way to print the stack. Any help on this one?
  7. Replies
    15
    Views
    2,363

    Need a little help with printing a stack

    Hello, I've been learning stack ADT from one of the books and I've written the following stack programs which works fine if the "print(stack)" is called after "popStack(stack)."

    However if I call...
Results 1 to 7 of 7