include iostream void myFunction int int main cout from main cout from

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
#include <iostream.h>
void myFunction();
int x=5, y=7;
int main()
{
cout<< "x from main :"<<x<<"\n";
cout << "y from main :"<<y<<"\n";
myFunction();
cout<<"back from myFunction!\n\n";
cout <<"x from main:"<<x<<"\n";
cout<<"y from main:"<<y<<"\n";
return 0;
}
void myFunction()
{
int y=10;
cout <<"x from myFunction:"<<x<<"\n";
cout<<"y from myFunction:"<<y<<"\n\n";
}