#include <iostream>
using namespace std;
void addWithTwo(int &);
void addWithTwo(int &ref){
ref = ref + 2;
}
int main()
{
int a = 10;
addWithTwo(a);
cout << a << endl;
return 0;
}
using namespace std;
void addWithTwo(int &);
void addWithTwo(int &ref){
ref = ref + 2;
}
int main()
{
int a = 10;
addWithTwo(a);
cout << a << endl;
return 0;
}
No comments:
Post a Comment