User Defined & Procedure Function

#include<math.h> //sqrt & floor 
#include<iostream.h>
int j = 3;// Global variable - known in main program and all functions.
void go_get_it(int *a, int b); // prototype
int demo( int m, int n);
main()
{
int b = 0;// local variable - only known in main program
int num1 = 5;
int num2 = 10;
j += 4;
cout << j << '*' << num1 << '\n';
cout << num2 << '\n';
go_get_it(&num1, num2);//procedure function call

cout << "j = "<< j << '*'<< num1 << '\n';
cout << num2 << '\n';
go_get_it(&num2, num1); //procedure function call
cout << num1 << '\n';
cout << num2 << '\n';
b = demo (num2, num1); // user defined function call
cout << j << '*' << b << '*' << num2 << '*' << num1;

return 0;
}
//========= P R O C E D U R E     F  U   N  C  T  I  O  N go_get_it =================
//procedure function
void go_get_it(int *a, int b) // header
{
cout << *a << '\n';
cout << b << '\n';
*a = 11 + ++b;
b = 12;
j -= b + *a;
}
// ======== U S E R D E F I N E D    F  U  N  C  T  I  O  N d e m o ===========
//user defined function
int demo( int m, int n)
{
int r = 3; //local variable - only known in function demo
++m;
n++;
r += j + m * n;
return (r);

}

/*
7*5
10
5
10
j = -27*22
10
10
22
22
34
-73*735*34*22
*/