online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
// Prueba del operador sizeof. #include <iostream> using namespace std; int main() { char c; // Variable de tipo char short s; // Variable de tipo short int i; // Variable de tipo int long l; // Variable de tipo long float f; // Variable de tipo float double d; // Variable de tipo double long double ld; // Variable de tipo long double int array[20]; // arreglo de int int *ptr = array; // Variable de tipo int * cout << "sizeof c = " << sizeof c << "\tsizeof(char) = " << sizeof( char ) << "\nsizeof s = " << sizeof s << "\tsizeof(short) = " << sizeof( short ) << "\nsizeof i = " << sizeof i << "\tsizeof(int) = " << sizeof( int ) << "\nsizeof l = " << sizeof l << "\tsizeof(long) = " << sizeof( long ) << "\nsizeof f = " << sizeof f << "\tsizeof(float) = " << sizeof( float ) << "\nsizeof d = " << sizeof d << "\tsizeof(double) = " << sizeof( double ) << "\nsizeof ld = " << sizeof ld << "\tsizeof(long double) = " << sizeof( long double ) << "\nsizeof array = " << sizeof array << "\nsizeof ptr = " << sizeof ptr << endl; } // fin main

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