--- In [email protected], Arvind Balodia <arvind.balo...@...> wrote:
>
> v=(m++)+(++m);
> if it is against the rule of c language then the all the compilers
> that have been developed should leave a message telling the User
> that it is against the programming laws.
g++ does give a warning:
jm.cpp: In function `int main()':
jm.cpp:7: warning: operation on `m' may be undefined
As does (f)lint:
--- Module: jm.cpp (C++)
_
v = (m++) + (++m);
jm.cpp 5 Warning 564: variable 'm' depends on order of evaluation