online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Programa C++ para imprimirlos elementos de un arreglo 2-D // utilizando un arreglo de punteros #include <iostream> using namespace std; int main() { int arr[3][4] = { {10, 11, 12, 13}, {20, 21, 22, 23}, {30, 31, 32, 33} }; //xxxxxxxxxxxxxxxxxxxxx int (*ptr)[4] ; //Asignamos la direccion del arreglo al puntero //ptr = arr; cout<<"ptr \t\t"<<"ptr+1 \t\t"<<"ptr+2"<<endl; cout<<ptr<<" "<<ptr+1<<" "<<ptr+2<<"\n"<<endl; cout<<"*ptr \t\t"<<"*(ptr + 1) \t"<<"*(ptr + 2)"<<endl; cout<<*ptr<<" "<<*(ptr+1)<<" "<<*(ptr + 2)<<"\n"<<endl; cout<<"**ptr \t\t"<<" *(*(ptr + 1) + 2) \t" << "*(*(ptr + 2) + 3)"<< endl; cout<<**ptr<< "\t\t "<<*(*(ptr+1)+2)<<"\t\t\t "<<*(*(ptr+2)+3)<<"\n"<< endl; cout<<"ptr[0][0]"<<"\t\t "<<"ptr[1][2]"<< " \t "<< "ptr[2][3]"<< endl; cout<<ptr[0][0]<<" \t\t\t"<< ptr[1][2] << "\t\t "<< ptr[2][3]<< "\n" << endl; 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