dont use *h just use h On Tue, Aug 9, 2011 at 8:31 PM, siddharth srivastava <[email protected]>wrote:
> Hi > > On 9 August 2011 20:26, programming love > <[email protected]>wrote: > >> #include<stdio.h>typedef struct {char * a; >> }*nodeptr; >> main(){nodeptr *h;h->a="programming";printf("hi %s\n", h->a);} >> >> >> this gives an error. Please explain the concept behind this. >> >> > > You have used typedef incorrectly > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards > Siddharth Srivastava > > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
