unary +

lars lars at myab.UUCP
Sun Mar 16 14:47:45 AEST 1986


In article <1227 at mtx5a.UUCP> esg at mtx5a.UUCP writes:
>An expression a + (b + c) may be calculated by some
>implementations as (a + b) + c. To enforce the
>intended precedence of operations one should use
>a + +(b + c).

Why not use this this construction:

a + (volatile)(b + c) ?

Would this imply that the access of 'b' and 'c' is "volatile" ?
In that case the following should also work:

(volatile)(a + (b + c)).
-- 
    ______________________________________________________
	Lars Pensjo
	{decvax,philabs}!mcvax!enea!chalmers!myab!lars



More information about the Comp.lang.c mailing list