--- operator.7-orig 2006-12-26 12:54:00.000000000 -0500 +++ operator.7 2006-12-26 12:54:16.000000000 -0500 @@ -33,33 +33,34 @@ .\" Restored automatic formatting from FreeBSD. 2003-08-24 .\" Martin Schulze .\" -.Dd August 24, 2003 -.Dt OPERATOR 7 -.Os -.Sh NAME -.Nm C operator -.Nd C operator precedence and order of evaluation -.Sh DESCRIPTION -This manual page lists C operators and their precedence in evaluation. -.Bd -ragged -offset indent -compact -.Bl -column "= += -= *= /= %= <<= >>= &= ^= |=" -.It Sy "Operator Associativity" -.It "-------- -------------" -.It "\&() [] -> . left to right" -.It "\&! ~ ++ -- + - (type) * & sizeof right to left" -.It "\&* / % left to right" -.It "\&+ - left to right" -.It "\&<< >> left to right" -.It "\&< <= > >= left to right" -.It "\&== != left to right" -.It "\&& left to right" -.It "\&^ left to right" -.It "\&| left to right" -.It "\&&& left to right" -.It "\&|| left to right" -.It "\&?: right to left" -.It "\&= += -= *= /= %= <<= >>= &= ^= |= right to left" -.It "\&, left to right" -.El -.Ed +.\" Reformatted to use TBL, because doclifter can translate that to XML tables. +.\" Eric S. Raymond .\" +.TH OPERATOR "1" "Nov 2004" "Linux" "C language" +.SH NAME +operator \- C operator precedence and order of evaluation +.SH DESCRIPTION +.PP +.TS +tab(@); +l l +--- +l l. +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 += += -= *= /= %= <<= >>= &= ^= |=@right to left +,@left to right +.TE +