That is right. I didn't have all the function prototypes in the .h file. I had wrongly declared them in the .c file instead. That worked in such a way that it made the compiler assign the default...
Type: Posts; User: rire1979
That is right. I didn't have all the function prototypes in the .h file. I had wrongly declared them in the .c file instead. That worked in such a way that it made the compiler assign the default...
LinkedList and Node are different structures. It's a stylistic choice.
In the debugger I am comparing the return address given by malloc with the return address given to tmp.
Inside LLCreateNode() address returned by malloc is (struct Node *) 0x100100090.
Outside...
I am experimenting with C and trying to write a linked list. The LLCreateNode function is meant to return a pointer to a node allocated with malloc. However, after executing the call to LLCreateNode...
I'm preparing for interviews and I want to get comfortable with C after years of development in Java and C#. I decided to start with the implementation of basic data structures and this brings me to...