#include<string.h>
#include<iostream.h>
#include<conio.h>
#include<stdlib.h>
#define MAX 30
struct node{
int age;
char name[MAX];
struct node *next;
};
/* any ideas why this code want run */
int main()
{
int amount;
cout<<"How many people to be stored";
cin>>amount;
struct node *ptr=(struct node*)malloc(sizeof (struct node));
strcpy(ptr->name,"ANTHONY");
cout<<ptr->name;
ptr->next=(struct node*)malloc(sizeof(struct node));
free(ptr->next);
free(ptr);
return 0;
}
/* thanks for the help */