ITPub博客

首页 > 应用开发 > IT综合 > C++指针问题

C++指针问题

原创 IT综合 作者:dongyu2013 时间:2014-04-21 18:57:13 0 删除 编辑
int main()
{ 
   char *str[]={"Welcome", "to", "Fortemedia", "Nanjing"};
   char **p=str+1;
   str[0]=(*p++)+2;
   str[1]=*(p+1);
   str[2]=str[1]+3;
   str[3]=p[0]+(str[2]-str[1]);   *p指向str[2]
   cout<    return 0;
}

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29012686/viewspace-1146362/ ,如需转载,请注明出处,否则将追究法律责任。

下一篇: C++指针转换
请登录后发表评论 登录
全部评论

注册时间:2013-12-25

  • 博文量
    263
  • 访问量
    238065