online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> void foo() { std::cout << "Hello"; } void foo2() { std::cout << " wolrd!"; } int main() { //create array(of size 2) that can hold pointers to functions that does not return anything void (*arr[2])() = { foo, foo2}; arr[0](); // calls foo arr[1](); //calls foo1 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