online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/****************************************************************************** Welcome to code of Lập trình - Điện tử Series: C++ Author: Nghĩa Taarabt *******************************************************************************/ #include <stdio.h> #include <stdint.h> #include <stdlib.h> typedef struct Node_t { uint32_t Data; struct Node_t * pNext; } NodeType; /* Create a Static Linked List */ NodeType * HEAD = NULL; void List_AddNode(uint32_t Data) { /* Allocate new node memory */ NodeType * pnewNode = (NodeType*)malloc(sizeof(NodeType)); /* Assign new Data */ pnewNode->Data = Data; /* New Node will contain address of Old First Node */ pnewNode->pNext = HEAD; /* HEAD will contain address of the New Node */ HEAD = pnewNode; } int main() { List_AddNode(10); printf("Node 1 Data = %d\n", HEAD->Data); List_AddNode(20); printf("Node 1 Data = %d\n", HEAD->Data); return 0; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue