online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
#include <iostream> struct SampleStruct { char text[100]; int value; }; int main() { SampleStruct *p_struct; std::cout << "Struct address: " << p_struct << std::endl; std::cout << "Struct size: " << sizeof(*p_struct) << std::endl; std::cout << "Text address: " << &(p_struct->text) << std::endl; std::cout << "Value address: " << &(p_struct->value) << std::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