online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> constexpr auto PI = 3.1415926; #define EXECUTE(F, ...) \ do { \ auto f = F(__VA_ARGS__); \ std::cout << "EXECUTE: " << f << "\n"; \ } while(0) #define SQUARE(X) ((X) * (X)) float add(float a, float b) { return a + b; } int main() { std::cout << "PI: " << PI << "\n"; EXECUTE(add, 7, 42); std::cout << "SQUARE(7): " << SQUARE(7) << "\n"; }

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