online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include "header.h" //include the header to use globals int main() { std::cout << i <<std::endl;//prints 0 std::cout<< p << std::endl;//prints 34 return 0; }
#ifndef MYHEADER_H #define MYHEADER_H //declaration for all the global variables extern int i; extern double p; #endif
#include "header.h" //definitions for all the globals declared inside header.h int i = 0; double p = 34;

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