online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> void printValue(void *ptr, char type); int main() { int i = 23; float f = 4.5; char c = 'z'; printValue(&i, 'i'); printValue(&f, 'f'); printValue(&c, 'c'); return 0; } void printValue(void *ptr, char type){ switch(type){ case'i': printf("%d \n", *(int*)ptr); break; case'f': printf("%f \n", *(float*)ptr); break; case'c': printf("%c \n", *(char*)ptr); break; } }

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