Skip to content

练习2.27 #62

Description

@CharlieHon

练习2.27里(b)中的i2,在前面没有找到它的定义。
(a). int i = -1, &r = 0;
(g). const int i2 = i, &r = i;
(b). int *const p2 = &i2;
如果i2是按这个顺序来定义的话,那(b)应该不合法。p2得包含底层const
const int *const p2 = &i2;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions