online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/****************************************************************************** Welcome to GDB Online. GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, C#, VB, Perl, Swift, Prolog, Javascript, Pascal, HTML, CSS, JS Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> int main() { #define ARRAY_WIDTH 10 #define ARRAY_HEIGHT 10 char CArray[ARRAY_HEIGHT][ARRAY_WIDTH]; short SArray[ARRAY_HEIGHT][ARRAY_WIDTH]; long LArray[ARRAY_HEIGHT][ARRAY_WIDTH]; printf("&CArray[0][1] - &CArray[0][0] = %ld (%p-%p) sizeof(char) = %lu\n", (long)(&CArray[0][1]) - (long)(&CArray[0][0]), &CArray[0][1], &CArray[0][0], sizeof(char)); printf("&SArray[0][1] - &SArray[0][0] = %ld (%p-%p) sizeof(short) = %lu\n", (long)(&SArray[0][1]) - (long)(&SArray[0][0]), &SArray[0][1], &SArray[0][0], sizeof(short)); printf("&LArray[0][1] - &LArray[0][0] = %ld (%p-%p) sizeof(long) = %lu\n", (long)(&LArray[0][1]) - (long)(&LArray[0][0]), &LArray[0][1], &LArray[0][0], sizeof(long)); printf("&CArray[1][0] - &CArray[0][0] = %ld (%p-%p) sizeof(char) * ARRAY_WIDTH = %lu\n", (long)(&CArray[1][0]) - (long)(&CArray[0][0]), &CArray[1][0], &CArray[0][0], sizeof(char) * ARRAY_WIDTH); printf("&SArray[1][0] - &SArray[0][0] = %ld (%p-%p) sizeof(short) * ARRAY_WIDTH = %lu\n", (long)(&SArray[1][0]) - (long)(&SArray[0][0]), &SArray[1][0], &SArray[0][0], sizeof(short) * ARRAY_WIDTH); printf("&LArray[1][0] - &LArray[0][0] = %ld (%p-%p) sizeof(long) * ARRAY_WIDTH = %lu\n", (long)(&LArray[1][0]) - (long)(&LArray[0][0]), &LArray[1][0], &LArray[0][0], sizeof(long) * ARRAY_WIDTH); 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