Hi, I would like to know if passing a pointer to a pointer is faster than passing a pointer by value... To make it clearer, let's take a look at these prototypes:
So I just want to know, between these differences, what would it change to pass an int** when you could just use an int*? In other words, we know that the first line will have to make a copy of the variable and thus needing some more space in the program. But with the 2nd or 3rd lines, we pass an address so it doesn't have to take more memory copying the initial value... But a pointer too takes memory in the computer, (I believe) and so we can place a pointer to this pointer, but does that changes a thing? (int* -> int**)Code:void abc(int a); void abc(int& a); void abc(int*a); void abc(int** a);