online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <cstdint> #include <iostream> #include "test.h" my_struct *test; int main() { initialise(); load(&test); while (true) { std::cout << test->value << std::endl; } }
#ifndef __TESTH #define __TESTH #ifdef __cplusplus #define EXTERNC extern "C" #else #define EXTERNC #endif typedef struct { uint8_t value; } my_struct; EXTERNC void initialise(); EXTERNC void load(my_struct**); #endif
#include <cstdint> #include "test.h" namespace { my_struct test; } void initialise() { test.value = 200; } void load(my_struct** struct_ptr) { *struct_ptr = &test; }

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