为什么指针? [英] Why pointers??
本文介绍了为什么指针?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
为什么要使用指针?
Why use pointers at all??
推荐答案
onkar写道:
onkar wrote:
为什么要使用指针?
Why use pointers at all??
使用* p ++表示法而不是p [i ++]有助于降低可移植性
其他语言,往往是一个目标。我怀疑很多人会放弃
款式。或者,你是否宣传C不会被用于其中一个
符号有用的地方?
Use of *p++ notation rather than p[i++] helps reduce portability to
other languages, which often is a goal. I doubt many would give up both
styles. Or, do you campaign for C not to be used where one of these
notations would be useful?
Op 21 Sep 2006 06:20 :50 -0700 schreef onkar:
Op 21 Sep 2006 06:20:50 -0700 schreef onkar:
为什么要使用指针?
Why use pointers at all??
为什么?你害怕他们会指向你吗?
-
Coos
Why? Are you afraid they will point at you?
--
Coos
onkar写道:
onkar wrote:
为什么要使用指针?
Why use pointers at all??
因为使用数组指向事物是没有意义的吗?
提示:做5秒钟嵌入式软件工作并重新思考你的问题。
Tom
Because it doesn''t make sense to use arrays to point to things?
Hint: Do 5 seconds of embedded software work and re-think your
question.
Tom
这篇关于为什么指针?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文