online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main() { int number = 20; int *ptr1 = &number; int *ptr2; int *ptr3=0; int *ptr4=NULL; if(ptr1 == 0) printf("ptr1: NULL\n"); else printf("ptr1: NOT NULL\n"); if(ptr2 == 0) printf("ptr2: NULL\n"); else printf("ptr2: NOT NULL\n"); if(ptr3 == 0) printf("ptr3: NULL\n"); else printf("ptr3: NOT NULL\n"); if(ptr4 == 0) printf("ptr2: NULL\n"); else printf("ptr2: NOT NULL\n"); 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