Usenet.com

www.Usenet.com

Group Index

Comp Thread Archive from Usenet.com

<-- __Chronological__ --> <-- __Thread__ -->

Newbie Question on Struct



hi all,
why doesn't this compile using lcc-win on W2K?

#include <stdio.h>

int main(void)
{
        typedef struct {int age; char *name;} people;
        people *person;
        person->age = 10;
        person->name="Ricky";
        return 0;
}

Thanks



<-- __Chronological__ --> <-- __Thread__ -->


Usenet.com



Please check out one of the premium Usenet Newsgroup Service Providers below for access to Usenet.