#include <iostream>
using namespace std;
int p(int *a) {
return --(*a);
}
int main()
{
int *a = new int;
*a = 10;
cout << *a << " " << p(a) << " " << *a << "\n"; //(1)
cout << p(a) << " " << *a << " "; // (2)
cout << *a << endl; // (3)
return 0;
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.