#reference vs pointer parameter
19 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question use !howto ask.
#1013107104678162544 or #cpp-help-text
Also please properly format your question
Right now a few * are interpreted as formatting characters leading to stuff like this:
Ohhh my apologies didn’t know it did that
Is this not a thing in C?
When you said "passing in [...] to a function".
Did you mean it like so:
void f(int& x);
```or just that when you pass a variable to a function you either do
```c
f(x);
```or
```c
f(&x);
```?
So in a nutshell, a pointer points to the first byte instead of the entire amount of bytes?
And a &value would refer to the memory location?
And this is why referring changes the value of the location?
what?
References aren't a thing in C, the question itself didn't make sense to begin with.
No clue what that comment of yours is supposed to mean