Top "Pass-by-pointer" questions

Pass-by-pointer is a concept (commonly used in C or C++) that refers to passing the address (pointer) of a variable to a function.

Is Swift Pass By Value or Pass By Reference

I'm really new to Swift and I just read that classes are passed by reference and arrays/strings etc. are …

swift pass-by-reference pass-by-value pass-by-pointer
Does C++ pass objects by value or reference?

A simple question for which I couldn't find the answer here. What I understand is that while passing an argument …

c++ pass-by-reference pass-by-value pass-by-pointer
Performance cost of passing by value vs. by reference or by pointer?

Let's consider an object foo (which may be an int, a double, a custom struct, a class, whatever). My understanding …

c++ pointers pass-by-reference pass-by-value pass-by-pointer
C++ Call by reference

If I have a function which takes a pointer to an integer, and I pass a reference to an integer …

c++ function pass-by-reference pass-by-value pass-by-pointer
Confused by single pointer and double pointer arguments in function calls

I'm trying to get a deeper understanding on pointer arguments in functions for C. I've written a test program to …

c pointers pass-by-value pass-by-pointer
Passing vector of vectors to function

I have a function which accepts a vector<vector<MyClass>> and modifies the MyClass instances. It's …

c++ vector pass-by-reference pass-by-value pass-by-pointer