Search:

Type: Posts; User: supaman

Search: Search took 0.01 seconds.

  1. Thread: aMethod

    by supaman
    Replies
    4
    Views
    1,058

    aMethod

    What does the function below do?



    int aMethod ( nodePtr list, int (*compar)(void *, void *) ) {
    int b = 1;
    nodePtr o1 = NULL, o2 = NULL;
    for ( ; list ; list = list->next ) {
    o1 = list;
    if...
  2. Thread: Recursion

    by supaman
    Replies
    1
    Views
    1,375

    Recursion

    How do I modify code below to print a singly linked list where the data elements are int's from the front to back and then the back to front again. i.e., if the elements contain 1, 3, 5 ,7 ,9, the...
  3. Thread: Linked Lists

    by supaman
    Replies
    7
    Views
    971

    Alright i got it now, thanks

    Alright i got it now, thanks
  4. Thread: Linked Lists

    by supaman
    Replies
    3
    Views
    959

    it's a problem that has me stumped! can you help!

    it's a problem that has me stumped! can you help!
  5. Thread: Linked Lists

    by supaman
    Replies
    7
    Views
    971

    qqqqxxxx, so how would the code look to adjust...

    qqqqxxxx, so how would the code look to adjust the next pointer to point to the second element,and adjust the prev pointer to point to the first element
    adjust the next pointer of the first element...
  6. Thread: Linked Lists

    by supaman
    Replies
    7
    Views
    971

    Also, if a linked list was circular (i.e., the...

    Also, if a linked list was circular (i.e., the [I]prev[I] pointer in the first element was pointing to the last element in the list - and the [I]next[I] pointer of the last element points to the...
  7. Thread: Structures

    by supaman
    Replies
    1
    Views
    895

    Structures

    Define a structure, suitable for storing the coordinates in a three dimensional coordinate system (for example, a GPS coordinate). Also allow space for each node to store a name (not to exceed 32...
  8. Thread: Linked Lists

    by supaman
    Replies
    7
    Views
    971

    Linked Lists

    Below is a small figure that shows a linked list with 4 nodes. Please show the necessary steps to insert a node after the 2nd element in the list.

    head ...
  9. Thread: Linked Lists

    by supaman
    Replies
    3
    Views
    959

    Linked Lists

    A singly linked list contains ten nodes. The data in the nodes are variables of type int. How much overhead storage is used in order to maintain this list? Would you say this is effiecient? how much...
  10. Replies
    1
    Views
    757

    Contents of element

    The command line arguments to the C main function can be read by accessing the parameters of main, if main has the following signature:
    int main ( int argc, char **argv );
    What is the contents of...
  11. Replies
    7
    Views
    1,889

    allocating some memory

    Question #1: If you write the following code to allocate some memory:
    void *mem (256); //Allocate 256 bytes of memory
    How would you access the 42nd byte in this memory??

    Question #2: using the...
Results 1 to 11 of 11