Re: Error in 'man operator'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jakub,

On 8/28/21 7:43 AM, Jakub Wilk wrote:
* Alejandro Colomar <alx.manpages@xxxxxxxxx>, 2021-08-28, 02:17:
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/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux