Thread: Questions

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    7

    Questions

    Following are the few questions that i could not solve as a beginner of C programming:

    1) Write C statements which will insert a new node nodew between node1 and node2, using the pointer list (which is currently pointing to node1). Assume that a pointer new_node points to node nodew.

    2) Write a function called delete_node, which accepts a pointer to a list, and a pointer to the node to be deleted from the list.

    3) Write a function called insert_node, which accepts a pointer to a list, a pointer to a new node to be inserted, and a pointer to the node after which the insertion takes place.

    Solutions from you guys will be appreciated.

  2. #2
    spurious conceit MK27's Avatar
    Join Date
    Jul 2008
    Location
    segmentation fault
    Posts
    8,300
    Quote Originally Posted by yuyu909 View Post
    Solutions from you guys will be appreciated.
    I bet. How about you try to solve one, post your code, and we can help you? That way, you can actually make an attempt to learn some programming.

    Read this before you post code:
    << !! Posting Code? Read this First !! >>
    And make sure it is properly indented! Or at least try to properly indent it!
    C programming resources:
    GNU C Function and Macro Index -- glibc reference manual
    The C Book -- nice online learner guide
    Current ISO draft standard
    CCAN -- new CPAN like open source library repository
    3 (different) GNU debugger tutorials: #1 -- #2 -- #3
    cpwiki -- our wiki on sourceforge

  3. #3
    Make Fortran great again
    Join Date
    Sep 2009
    Posts
    1,413

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. questions....so many questions about random numbers....
    By face_master in forum C++ Programming
    Replies: 2
    Last Post: 07-30-2009, 08:47 AM
  2. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  3. Several Questions, main one is about protected memory
    By Tron 9000 in forum C Programming
    Replies: 3
    Last Post: 06-02-2005, 07:42 AM
  4. Trivial questions - what to do?
    By Aerie in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 12-26-2004, 09:44 AM
  5. questions questions questions.....
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-14-2001, 07:22 AM