表达式参数求值是没有规定的。
2010/12/10 Bin Shi <[email protected]>
> The follow C code:
>
> #include <stdio.h>
>
> int global_a = 10;
>
> int increase(void)
> {
> return global_a += 10;
> }
>
> int main(void)
> {
> printf("%d,%d\n", increase(), global_a);
> }
>
> GCC output:
> 20, 10
>
> but tcc-0.9.25 output:
> 20, 20
>
> Who is right ? What does ANSI C defines?
>
>
>
>
> _______________________________________________
> Tinycc-devel mailing list
> [email protected]
> http://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
>
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel