为int * p和INT * P声明的区别 [英] difference between int* p and int *p declaration
本文介绍了为int * p和INT * P声明的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你能告诉为int * p和INT * P声明之间的区别?
Can you please tell the difference between int* p and int *p declaration?
谢谢...
推荐答案
有没有什么区别
这是标记的,不是的语义的的问题。第二个是的少误导,因为
It's a matter of notation, not semantics. The second is less misleading, because
int *a, b;
显然在声明为int *
和 INT
,而
int* a, b;
看起来好像是宣布两个指针,当它真正做上述同样的事情。
looks as if it's declaring two pointers, when it's really doing the same thing as above.
这篇关于为int * p和INT * P声明的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文