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

C cheatsheet typo #379

Open
shanike opened this issue Apr 8, 2024 · 1 comment
Open

C cheatsheet typo #379

shanike opened this issue Apr 8, 2024 · 1 comment

Comments

@shanike
Copy link

shanike commented Apr 8, 2024

/* only parameters passed by address can are modified*/

Was meant to be "only parameters passed by address can be modified"? or "only parameters passed by address are modified"?

Context: Function definition in the C language

@adityanarayanan343
Copy link

If the parameter is passed by reference the original values will be modified in the functions whereas if it is passed by value, the compiler will duplicate the parameters as a local variable for the function and then delete it once it is out of the scope

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants