online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <stdio.h> #include <time.h> #include <stdlib.h> int prod (int a, int b) { return a*b; } int sum (int a, int b) { return a+b; } void noChangeFunction(int (*operation)(int a, int b)) { int a = rand() % 100; int b = rand() % 100; printf("The product of %d and %d is %d\n", a, b, operation(a, b)); return; } int main() { srand(time(NULL)); noChangeFunction(prod); noChangeFunction(&prod); noChangeFunction(sum); 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