online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
/*************************************************************** * Name: Rafael Orta * Course: Computer Science & Programming * Class: CS04103 Section: 6 * Assignment Date: 10/12/21 * File Name: Function2.cpp ***************************************************************** * ID: Lab 2 Problem 3 * Purpose: Example of a function with parameters passed by value *****************************************************************/ #include <iostream> using namespace std; void calculation( int); int main() { int x = 5; calculation(x); cout << "\nThe value of x in the main is: " << x; return 0; } void calculation(int x) { x=x+5; cout << "\nThe value of x inside the function is: " << x; }

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