Path: utzoo!utgpu!jarvis.csri.toronto.edu!clyde.concordia.ca!uunet!mcsun!hp4nl!philapd!ssp2!pb From: pb@idca.tds.PHILIPS.nl (Peter Brouwer) Newsgroups: comp.lang.c,phil.misc Subject: c operator precedence and order of evaluation table in tbl Message-ID: <574@ssp2.idca.tds.philips.nl> Date: 17 Jan 90 08:14:47 GMT Organization: Philips Telecommunication and Data Systems, The Netherlands Lines: 49 Disclaimer: These opinions are mine alone . Here is a a table of the evaluation order of c operators , use tbl and [nt]roff to print. .TS center box tab(;); cp16B s s s s s s s s s cp16B s s s s s s s s s cp14I s s s s s s s s | cp14I cp15 cp15 cp15 cp15 cp15 cp12 cp15 cp15 cp12 | l. Precedence and order of evaluation \^ = operator;Associativity _ ();[];->;.;;;;;;left to right; _ !;~;++;--;-;(type);*;&;sizeof;right to left; _ *;/;%;;;;;;;left to right; _ +;-;;;;;;;;left to right; _ <<;>>;;;;;;;;left to right; _ <;<=;>;>=;;;;;;left to right; _ ==;!=;;;;;;;;left to right; _ &;;;;;;;;;left to right; _ ^;;;;;;;;;left to right; _ |;;;;;;;;;left to right; _ &&;;;;;;;;;left to right; _ | |;;;;;;;;;left to right; _ ? :;;;;;;;;;right to left; _ =;+=;-=;etc;;;;;;right to left; _ ,;;;;;;;;;left to right; .TS -- Peter Brouwer, # Philips Telecommunications and Data Systems, NET : pb@idca.tds.philips.nl # Department SSP-P9000 Building V2, UUCP : ....!mcvax!philapd!pb # P.O.Box 245, 7300AE Apeldoorn, The Netherlands. PHONE:ext [+31] [0]55 432523, #