That is precisely correct. The problem is that a header file is simply pasted into another file whenever it is #included. The compiler (or preprocessor) is not smart enough to recognize that a file...
Type: Posts; User: cas
That is precisely correct. The problem is that a header file is simply pasted into another file whenever it is #included. The compiler (or preprocessor) is not smart enough to recognize that a file...
When you're adding to a list that already exists (i.e. head is not NULL), you're overwriting the current tail with the new information rather than writing the new information to tail->next. All...