Frage im Vorstellungsgespräch bei Marvell Technology

C questions: - array vs pointer - passed by value/reference

Antwort im Vorstellungsgespräch

Anonym

25. Mai 2011

pass by value means the value is copied locally into the subroutine and any changes to it will not reflect on the variable declared globally. pass by reference is that you can dereference the handle for a shared storage. you can have read-only reference by having "const ref" in SV.

1