What is the purpose of a declaration like int (x); or int (x) = 10;

前端 未结 2 1043
野性不改
野性不改 2020-12-01 13:50

If you look at the grammar for *declarator*s in §8/4 you\'ll notice that a noptr-declarator can be written as (ptr-declarator

2条回答
  •  无人及你
    2020-12-01 14:15

    You're asking the wrong question. The correct question is:

    What is the purpose of disallowing such a declaration?

    The answer is: there is none.

    So, given that this syntax is allowed as a side-effect of rules elsewhere, this is what you get.

提交回复
热议问题