Archive for the ‘c’ Category

先有这段程序:

  1. main()
  2. {
  3. char *s[]={"one","two","three"},*p;
  4. p=s[1];
  5. printf("%c,%s\n",*(p+1),s[0]);
  6. }

程序运行为w,one
简单说,指针就是数组.从某种程度上而言,
指针就是 数组的第一个元素的地址
数组就是连续的内存空间