Re: beginners problem



Lars <a@xxxxxxxxxxxxxxxx> wrote:

If this is the wrong list for beginners trouble I apologize.

This is not a list, it's a newsgroup. And if you post questions about
ISO C, not about, oh, I dunno, M$VC#++4.6 or Ganuck 4.77.35.88.55-alpha,
you should be fine here whether you're a beginner or not. Your question
is perfectly on-topic. However...

#include <stdio.h>
#include <stdlib.h>

typedef struct node {
  struct node * next;
  int data;

....you might want to check what is inserting these weird characters into
your code, and...

int main(){
  Node * nod = NULL;
  insert(nod,4);

....you might want to read the FAQ, in particular question 4.8:
<http://c-faq.com/ptrs/passptrinit.html>. The rest of that section, and
the rest of the FAQ, is instructive, too.

Richard
.



Relevant Pages

  • Re: Discussion Boards - Sorting
    ... I will put something together today for the FAQ ... > Mike Walsh, Helsinki, Finland ... > Please post questions to the newsgroup only. ...
    (microsoft.public.sharepoint.windowsservices)
  • sci.med.transcription Frequently Asked Questions (SMT FAQ) Update
    ... THIS FAQ MAY BE DISTRIBUTED, POSTED, ETC. ... BY A FOR-PROFIT ENTITY ONLY WITH THE EXPRESS PERMISSION OF THE AUTHOR. ... PART 5: Newsgroup Participation ... AOL Keyword to access Sci Med Transcription - ...
    (sci.med.transcription)
  • SMT FAQ
    ... I did an extensive updating of the SMT FAQ. ... PART 5: Newsgroup Participation ... AOL Keyword to access Sci Med Transcription - ...
    (sci.med.transcription)
  • Roger Wittekind & The Flaming FAQ
    ... This FAQ is for personal use only. ... through the newsgroup misc.transport.trucking and let me, ... Roger Wittekind posts regularly. ... years in a desperate attempt to design an online personality that will ...
    (misc.transport.trucking)
  • [Periodic Post] FAQ: Moderation Policies and Procedures
    ... This FAQ is an introduction to the soc.religion.mormon newsgroup. ... Who Moderates This Group? ... courteous discussion of issues pertaining to the LDS church. ...
    (soc.religion.mormon)