Just want to know why we sometimes declare reference(&) to the parameter accepting array in the called function because arrays are always passed by reference. So the changes in called function will reflect to the calling function parameter. It's just that no memory will be created to the called function parameter. Then why is reference taken sometimes necessarily?
Aucun commentaire:
Enregistrer un commentaire