online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code    Language
/* Documentation Section Project: Add_Sub Author: the Bored Engineer */ // Linking Section #include <stdio.h> // include stdio.h library //Definition Section #define Num1 23 //Defining a numeric constant #define Num2 12 //Defining a numeric constant //Global Decleration Section int Sum = 0; //Declaring a global variable to store the addition result int Sub = 0; //Declaring a global variable to store the subtraction result void addition(void); //Decleration of the addition function void subtraction(void); //Decleration of the subtraction function //Main Section int main() //main function { addition(); //calling the addition function from Main subtraction(); //calling the subtraction function from Main return 0; //return 0 to the Operating Sysytem } //Sub-Program Section void addition(void) { Sum = Num1 + Num2; printf("Addition:%d\n", Sum); } void subtraction(void) { Sub = Num1 - Num2; printf("Subtraction:%d\n", Sub); }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text



Program is not being debugged. Click "Debug" button to start program in debug mode.