Hi I would like to know what are the differences between these functions
fn (String &string){
}
fn (String * string){
}
fn (String string){
}
Hi I would like to know what are the differences between these functions
fn (String &string){
}
fn (String * string){
}
fn (String string){
}
hi @klementtan,
first one is function call by reference
second one is function call by pointer (or address)
last is function call by value
there has to be a vedio in the functions section explaining the function calls so watch them first and in case of any doubt do ask
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.