hi there.....i wonder what's the difference with these 2 linked list...
1.
struct node
{
int wage;
int hours_worked;
int salary;
int hoursW;
char* name;
struct node *link;
};
2.
struct listNode
{
char data;
struct listNode *nextPtr;
};
typedef struct listNode ListNode; /* synonym for struct listNode */
typedef ListNode *ListNodePtr; /* synonym for ListNode* */
and this....
temp->name=(char*)malloc(strlen(tempString)+1);
//this is based on the linked list example 1(above)
//why this doesnt have sizeof? =)
i hope someone will answer me.........pls explain in simple english so that i can understand well...im not an American...=) thank a lot..peace!!