#include<iostream>
using namespace std;
void point(int *p)
{
*p = p[2];
}
void main()
{
int c[] = { 1,2,3,4,5 },*p = c;
point(p + 1);
for (; p < c + 5;)
{
printf("%d", *p++);
}
system("pause");
}
#include<iostream>
using namespace std;
void point(int *p)
{
*p = p[2];
}
void main()
{
int c[] = { 1,2,3,4,5 },*p = c;
point(p + 1);
for (; p < c + 5;)
{
printf("%d", *p++);
}
system("pause");
}