I am trying to read a file using pointers and this is all i get !
54123132132
21
2152
22
2
2
5212
2
Type: Posts; User: CFRK
I am trying to read a file using pointers and this is all i get !
54123132132
21
2152
22
2
2
5212
2
Can you please tell me how i can change this line ?
newptr->ID = NUM;
printf ("%d",NUM);
newptr->nextptr=(node*)malloc(sizeof(node));
...
Do you have any suggestion on how i can do that ?
How do i fix it ?
> newptr= (node*)malloc(sizeof(node));
If this is really C (and not C++ in >disguise), then you should not be casting the result of malloc.
what's wrong...
How cam i read from a .txt file that contains ID number and generate a dynamic linked list, where each node of the linked list would contain a single integer from the ID.
Thanx again.
Can anyone help me with line 29, dont know what's wrong with it.
I am write a C program that will read from a text file called id.txt
Basically on that i have my name and DOB in the following format (120667)and generate a dynamic linked list, where each node of...
what's the code to open a .txt file on unix.