|
|
sqlite3* someDatabase;
|
|
|
|
int foo(int i)
. If you call foo(x)
, do you expect the values of x
to change? Normally only copies of parameters are sent to a function. If you want to modify the parameter, you'd write your function as int foo(int* xptr)
or int foo(int& xref)
. Nothing changes with a pointer instead of integer. Your argument should have type sqlite3**
or sqlite3*&
.