online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> //#include <Windows.h> typedef int (*FARPROC)(); typedef void (*dangerousC)(char*); void foo(int a) { std::cout << a << std::endl; } int main() { auto raw = (FARPROC) foo; uint8_t b[4]; b[0] = 74; b[1] = 35; b[2] = 0; b[3] = 0; int32_t i = *reinterpret_cast<int32_t*>(b); std::cout << i << std::endl; auto func = reinterpret_cast<dangerousC>(raw); func(reinterpret_cast<char*>(i)); }

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