Thread (9 messages) 9 messages, 3 authors, 2021-08-28

Re: Error in 'man operator'

From: Alejandro Colomar (man-pages) <hidden>
Date: 2021-08-28 10:50:39

Hi Jakub,

On 8/28/21 7:43 AM, Jakub Wilk wrote:
* Alejandro Colomar [off-list ref], 2021-08-28, 02:17:
quoted
Hmm, I just came up with some very stupid piece of code that can show 
the different precedence between "unary operators" and "cast operators":

sizeof(int)x;
Perhaps a more vivid example would be:

   sizeof (int) + 1

which is parsed as
   (sizeof (int)) + 1

rather than:

   sizeof ((int) +1)

Yes, definitely more convincing!

Thanks,

Alex


-- 
Alejandro Colomar
Linux man-pages comaintainer; https://www.kernel.org/doc/man-pages/
http://www.alejandro-colomar.es/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help