Re: beginners problem
- From: rlb@xxxxxxxxxxxxxxxxxxxxxx (Richard Bos)
- Date: Mon, 11 Feb 2008 07:45:05 GMT
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
.
- Follow-Ups:
- Re: beginners problem
- From: Ian Collins
- Re: beginners problem
- References:
- beginners problem
- From: Lars
- beginners problem
- Prev by Date: u like me..
- Next by Date: Re: beginners problem
- Previous by thread: Re: beginners problem
- Next by thread: Re: beginners problem
- Index(es):
Relevant Pages
|