> {
> nodeptr[10];
> for(i=0;i<10;i++)
> a[i]=NULL;
>
>
> a[0]->s1.counter=0; // here the error and the
> error is
> dereferencing pointer to incomplete type??? what
> does it mean ???
a[i] is NULL so a[0]->s1 won't work.
you have to allocate space for a[i] before acessing
his fields.
(put a[i] = (nodeptr)malloc(sizeof(node)) or something
like this)
To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.
| Yahoo! Groups Sponsor |
| Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/c-prog/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
