#include <iostream>
using namespace std;
int main()
{
int multi(int *p);
int n[] = {3, 4, 6, 1, 3};
multi(n);
for (int i = 0; i < 5; i++)
{
cout << "Value of n[" << i << "] " << n[i] << endl;
}
return 0;
}
int multi(int *p)
{
for (int i = 0; i < 5; i++)
{
*p = *p * 5;
*p++;
}
return 0;
}
No comments:
Post a Comment