Hello all,
I'm normally a Java programmer so please bear with me. I'm trying to figure out how to create a singly linked list in C rather then Java. According to what I've read, it looks like a "struct" in C would be what I would use to create the nodes in a singly linked list. I have very very little knowledge in C and have no idea how this is implemented (I'm so used to OOP). Can a struct simply be called multiple times within the main() method to create multiple list nodes (one for each call)? Or am I thinking about this the wrong way?
Thanks,
Jisoo23
I'm normally a Java programmer so please bear with me. I'm trying to figure out how to create a singly linked list in C rather then Java. According to what I've read, it looks like a "struct" in C would be what I would use to create the nodes in a singly linked list. I have very very little knowledge in C and have no idea how this is implemented (I'm so used to OOP). Can a struct simply be called multiple times within the main() method to create multiple list nodes (one for each call)? Or am I thinking about this the wrong way?
Thanks,
Jisoo23