hey guys
what do u mean by double pointer in c++???
thank
what do u mean by double pointer in c++???
thank
#include <iostream> using namespace std; void allocInt( int **ppi) { *ppi = new int; **ppi = 5; } void freeInt( int *pi) { delete pi; } int main() { int *myInt; allocInt(&myInt); cout << *myInt << "\n"; freeInt(myInt); return 0; }
Comment