Search:

Type: Posts; User: Prateek Sarkar

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,122

    Thanks a lot everyone. :)

    Thanks a lot everyone. :)
  2. Replies
    11
    Views
    1,122

    Why exactly do we need double pointers as...

    Why exactly do we need double pointers as arguments here? Can't the same be achieved without it? Eg. instead of what you suggested,

    node * head = &ptr;
    head== ptr;

    works the same way, or...
  3. Replies
    11
    Views
    1,122

    What does a *node_name hold? Since a node is a...

    What does a *node_name hold? Since a node is a structure of multiple data types, what does *node_name fetch? I know int *c, *c would fetch the integer stored at address pointed to by c.
  4. Replies
    11
    Views
    1,122

    Linked List problem

    Here is a basic program for insertion at the beginning of a LL.


    void insert( node **head, int item)
    {
    node *ptr;
    ptr=(node *) malloc(sizeof(node));
    ptr->info= item;
    if( *head == NULL)...
Results 1 to 4 of 4