Skip to content

[C++] Difference between reference and const reference #39

Description

@zhoukaidev

Understand the essential difference between these two functions.

void foo(int& t);
void foo(const int& t);

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