C Playground for (small) C language
#include
typedef struct NodeTag{ //layout: horizontal int val; struct NodeTag *next; } Node; typedef Node *Position; typedef Position List; void insert(int x, Position p) { Position temp = malloc(sizeof(Node)); temp->val = x; temp->next = p->next; p->next = temp; } int main() { Position header = malloc(sizeof(Node)) /*background-color:gray*/; header->next = 0; List L = header; //Insert 6 at begin of L insert(6, L); //Insert 7 at begin of L insert(7, L); return 0; }
Input
Output
Debug
Run
🐢
🐇
Pause
Stop
Status
© 2023 by
PHAM Nguyen-Khang
Game
Python Playground