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, Java, PHP, Ruby, Perl, C#, OCaml, VB, Swift, Pascal, Fortran, Haskell, Objective-C, Assembly, HTML, CSS, JS, SQLite, Prolog. Code, Compile, Run and Debug online from anywhere in world. *******************************************************************************/ #include <stdio.h> #include <stdlib.h> #include <assert.h> #include <stddef.h> #define INDEX 0 // remove zero to get the error struct foo { int array[INDEX]; }; int main() { #ifdef __clang_major__ printf ("clang detected version %d.%d\n", __clang_major__, __clang_minor__); #endif #ifdef __GNUC__ // note that clang 3.7 declares itself as a gcc 4.2" printf ("gcc detected version %d.%d\n", __GNUC__, __GNUC_MINOR__); #endif 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