What do you want to save?
Add Code snippet
New code examples
-
C 2021-09-09 02:12:03
circular linked list in c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdbool.h> struct node { int data; int key; struct node *next; }; struct node *head = NULL; struct node *current = NULL; bool isEmpty() { return ... Add solution -
C 2021-09-09 00:28:02
implement stack using link list in c
#include <stdio.h> #include <stdlib.h> #define TRUE 1 #define FALSE 0 struct node { int data; struct node *next; }; typedef struct node node; node *top; void initialize() { top = NULL; } void push(int value) { node *tmp; ... Add solution -
TypeScript 2021-09-08 22:45:02
write a program to print all unique elements in an array
//write a program to print all unique elements in an array in c #include <stdio.h> int main(int argc, char const *argv[]) { int arr[] = {4, 256, 2, 256, 4, 3, 3, 5}, seen; int arr_length = sizeof(arr) / sizeof(int); for (int i = 0; i ... Add solution