Lec 1 | Circular Linked List | Creation | Data Structures

‪@VimalKaushik-g3t‬ Please Like, Share, and Subscribe. If any doubts or feedbacks please comment below. In this we discussed about, 1. Introduction to Circular Linked List 2. Creating a Circular Linked List Here is the logic for creating a Circular Linked List, typedef struct crllst { int data; struct crllst *link; }crllst; crllst *last = NULL, *temp; for(int i=0 ; i(less than symbol)n ; i++) { temp = (crllst*)malloc(sizeof(crllst)); scanf("%d",&temp-(greater than symbol)data); temp-(greater than symbol)link = NULL; if(last == NULL) { last = temp; last-(greater than symbol)link = temp; } else { temp-(greater than symbol)link = last-(greater than symbol)link; last-(greater than symbol)link = temp; last = temp; } }