I am a c# developer learning/relearning/brushing up on c++
I'm working on database access I have the following code and im having trouble understand what the & does in this case.
SQLHENV hEnv = NULL;
if (SQLAllocHandle(SQL_HANDLE_ENV, SQL_NULL_HANDLE, &hEnv) == SQL_ERROR)
{
If I remove the & I get this error.
'SQLAllocHandle' : cannot convert parameter 3 from 'SQLHENV' to 'SQLHANDLE *'
at first I thought it was simply passing this field in as a reference but based on the error it reads more like it is some how allowing it to convert?