return_type function(arg_type * arg);
return_type function(arg_type &arg);
What's the difference between these two declarations?
4/8/2021 7:00:55 AM
The first function accepts a pointer as an argument while the second makes a direct reference to it's argument
Note that it's not 'C/C++'. The second declaration is NOT valid in C, it is only valid in C++.
Also, you have 3 questions with the same content. Please delete the other 2 as they are duplicates
Sorry for the duplicates. SL was acting all weird.
Send us a message