In C, what is the correct syntax for declaring pointers?

后端 未结 8 1271
终归单人心
终归单人心 2020-11-27 20:32

I vaguely recall seeing this before in an answer to another question, but searching has failed to yield the answer.

I can\'t recall what is the proper way t

8条回答
  •  猫巷女王i
    2020-11-27 20:49

    Curiously, this rule doesn't apply if the type is deduced in C++0x.

    int a;
    decltype(&a) i, j;
    

    Both i and j are int*.

提交回复
热议问题