char[] and char[][]

// testIt.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"

#include <iostream>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
char sz[3][32]={"hello","world","good"};
//char* ss=sz[0];  --print hello
char* ss=&sz[0][32];  //---print world
cout<<"value:"<<ss<<endl;
getchar();
return 0;
}

原文地址:https://www.cnblogs.com/xianqingzh/p/1650126.html