반응형
#include<iostream>
using namespace std;
int main(void)
{
char *parray[5]={"dog","cat","tiger","김광,","이진"};
cout<<"출력..."<<endl;
for (int i=0;i<sizeof(parray)/sizeof(parray[0]);i++)
{
cout<<parray[i]<<endl;
}
cout<<endl;
int point[3][2]={33,22,12,23,11,10};
int *pp;
pp=point[0];
for (int i=0;i<sizeof(point)/sizeof(point[0][0]);i++)
{
cout<<*(pp+i)<<endl;
}
return 0;
}
반응형