Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameter 和 Argument 的区别 #5

Open
yangruihan opened this issue Aug 9, 2020 · 0 comments
Open

Parameter 和 Argument 的区别 #5

yangruihan opened this issue Aug 9, 2020 · 0 comments
Labels

Comments

@yangruihan
Copy link
Owner

  • Parameter:是 方法定义 中的一个变量
  • Argument:是传递给 方法定义中变量 的数据

如下:

void test(int parameter1, int parameter2)
{
}

int main(int argc, char** argv)
{
    int argument1 = 1;
    int argument2 = 2;
    test(argument1, argument2);
    return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant