online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> template <typename T> T* f(T* p) { return p + 1; } int main() { // const char pointer: const char cca[]{ "Hello" }; const char* ccp{ f(cca) }; std::cout << *ccp << std::endl; // 'e' // char pointer: char ca[6]{ "World" }; char* cp{ f(ca) }; std::cout << *cp << std::endl; // 'o' }

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