online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> #include <sstream> #include <stdio.h> using namespace std; const char *getUserInput (); int main () { const char *userInput = getUserInput (); printf ("The Number is %s\n", userInput); return 0; } const char * getUserInput () { std::string userInputStr = "40"; return userInputStr.c_str (); }

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