well actually im doing a linked list in C and im having trouble inputing a string into my structure
here is my code:
Code:typedef struct { char *Name; float Price; struct MyItems * Next; }MyItems;
this is how im inputting Name
(Current is of type MyItems)
Code:scanf("%s",Current->Name);
this is how im outputting Name
Code:printf("%s",Current->Name);
i would really appreciate any help
-thenexxuz