title: Get Address of Pointer Variable in Objective-C
body: <p>In the sqlite3_open function (Generic C function), I need to send the address of the sqlite3 generic C pointer as an argument.<br/>
  Example:</p>
  
  <pre><code>//Valid code
  NSString * databaseFile; //Path of database file. (Objective-C Object)
  sqlite3 * db; //Pointer to hold the sqlite database. (C Pointer)
  
  sqlite3_open([databaseFile UTF8String], &amp;db); //db is sent using the &amp; operator.
  </code></pre>
  
  <p>The problem is that I need to get *db variable from inside an object.
  I KNOW this code is wrong, but it is a way to explain what I need:</p>
  
  <pre><code>//I need to get the address of the pointer 'database' from inside the Objective-C Object 'object'.
  //I hope one of those wrong lines explain what I want:
  
  sqlite3_open([databaseFile UTF8String], &amp;[object database]);
  sqlite3_open([databaseFile UTF8String], [object &amp;database]);
  sqlite3_open([databaseFile UTF8String], &amp;(object-&gt;database);
  </code></pre>
  
  <p>I hope someone undertands me... Hahaha
  Thank you for your time! =)</p>