
#include <stdio.h> #include <stdlib.h> #include <conio.h> int main(void) { char a[][3] = { "ab", "cd", "ef" }; char* p = (char*) a; for (int index = 0; index < _countof(a); ++index) { printf_s("%s\n", p); p += sizeof(a[index]); } _getch(); return 0; }

授人以渔,不授人以鱼。