wikistack | C Programming
0 FOLLOWERS
Read the blog to find programming facts and other useful articles on C programming language.
wikistack | C Programming
5y ago
In this blog we we will learn “use of typedef in defining structure In C programming+”. So let us write a very simple linked list data structure program without typedef and review the code.
#include<stdio.h>
#include<malloc.h>
struct list
{
int data;
struct list* next;
};
void append(struct list **head, int id);
struct list* create_node(int data);
void reverse_list(struct list* curr)
{
// Base case
if (curr == NULL) return;
reverse_list(curr->next);
printf("%d ", curr->data);
}
int main()
{
struct list *head = NU ..read more