【问题标题】:What is the difference between char *exp="a+b" and char exp[]="a+b"? Are they stored the same way in memory or they differ?char *exp="a+b" 和 char exp[]="a+b" 有什么区别?它们在内存中的存储方式是相同的还是不同的?
【发布时间】:2022-06-14 17:54:08
【问题描述】:

另外,如果我们可以使用 char *exp,为什么我们不能使用 int *exp=[1,2,3] 来使用指针创建整数数组?

【问题讨论】:

  • 为什么你的标题和问题正文中有两个不同的问题?

标签: c


猜你喜欢
  • 1970-01-01
  • 2014-03-29
  • 2018-06-27
  • 2012-07-03
  • 1970-01-01
  • 1970-01-01
  • 2013-06-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多