online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdint.h> #include <stdio.h> typedef struct Node_TypeDef { uint16_t netId; uint8_t UID[6]; } Node_TypeDef; #define NODE_INIT_1 (Node_TypeDef) \ { \ 0x0001, /*NetID*/ \ {0x03, 0x44, 0x03, 0x00, 0xA0, 0x08} /*UID*/ \ } void initNode (Node_TypeDef *node, uint8_t mode); Node_TypeDef *ptrNode; void initNode (Node_TypeDef *node, uint8_t mode) { switch (mode) { case 1: *node = NODE_INIT_1; break; default: break; } ptrNode = node; } int main(void) { Node_TypeDef node; initNode (&node,1); printf("netId: %d\n", node.netId); /*More Code*/ 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