作者tinlans ( )
看板Programming
标题Re: [问题] 试问C语言中阵列与指标之疑问
时间Wed Sep 17 17:10:46 2008
※ 引述《Lysen (明月山岚)》之铭言:
: : 想一想...编译也许会过...
: : 不过空间会搞丢!
: 会不会过要看 compiler, 每家的 compiler 对待 c 的方式不同,
: 看会不会聪明的知道这边是当作 l-value.
: 同样的 statement 在 BCC, VC, GCC 就可能会有不同的结果.
如果有不同结果,
那必定是属於该 compiler 的 extension,
compiler 的 manual 应该会描述这项 extension,
并提供关闭该 extension 的选项才对;
只要熟悉 standard 的 syntax 和 semantic,
就不会被特定 compiler 的 extensions 迷惑住。
--
Ling-hua Tseng (
[email protected])
Department of Computer Science, National Tsing-Hua University
Interesting: C++, Compiler, PL/PD, OS, VM, Large-scale software design
Researching: Software pipelining for VLIW architectures
Homepage:
https://www.tinlans.org
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 118.160.117.244