Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
Could someone explain this part of the coding for data structures & linked list? I actually got this code from a textbook but no matter how I read the textbook, I still don't get the concept &a...
#2: Post edited
Could someone explain this part of the coding for data structures? I got this code from a textbook but no matter how I read the textbook, I still don't get the concept & what it means. Thanks :")- ```
- #include<stdio.h>
- #include<stdlib.h>
- struct listNode{
- char data;
- struct listNode *nextPtr
- };
- typedef struct listNode ListNode;
- typedef ListNode *ListNodePtr;
- void insert(ListNodePtr *sPtr, char value);
- char delete(ListNodePtr *sPtr, char value);
- int isEmpty(ListNodePtr sPtr);
- void printList(ListNodePtr currentPtr);
- void instructions(void);
- int main (void){
- //some coding
- }`
- Could someone explain this part of the coding for data structures & linked list? I actually got this code from a textbook but no matter how I read the textbook, I still don't get the concept & what it means. Thanks :")
- ```
- #include<stdio.h>
- #include<stdlib.h>
- struct listNode{
- char data;
- struct listNode *nextPtr
- };
- typedef struct listNode ListNode;
- typedef ListNode *ListNodePtr;
- void insert(ListNodePtr *sPtr, char value);
- char delete(ListNodePtr *sPtr, char value);
- int isEmpty(ListNodePtr sPtr);
- void printList(ListNodePtr currentPtr);
- void instructions(void);
- int main (void){
- //some coding
- }`
#1: Initial revision
Data structure implementation with Linked lists.
Could someone explain this part of the coding for data structures? I got this code from a textbook but no matter how I read the textbook, I still don't get the concept & what it means. Thanks :") ``` #include<stdio.h> #include<stdlib.h> struct listNode{ char data; struct listNode *nextPtr }; typedef struct listNode ListNode; typedef ListNode *ListNodePtr; void insert(ListNodePtr *sPtr, char value); char delete(ListNodePtr *sPtr, char value); int isEmpty(ListNodePtr sPtr); void printList(ListNodePtr currentPtr); void instructions(void); int main (void){ //some coding }`