- Aug 15, 2000
- 12,013
- 0
- 0
Suppose you had a function like this:
void delete(Stack ** stackpp) {
//do stuff
}
And you had the variable:
Stack * the_stack = 0;
How would you call that function, what exactly do you pass into it?
delete(???);
In the body of the function delete, suppose you wanted to free the memory that stackpp is pointing to, and you call free(address); what would u put in the parenthesis.
Pointers are confusing me
void delete(Stack ** stackpp) {
//do stuff
}
And you had the variable:
Stack * the_stack = 0;
How would you call that function, what exactly do you pass into it?
delete(???);
In the body of the function delete, suppose you wanted to free the memory that stackpp is pointing to, and you call free(address); what would u put in the parenthesis.
Pointers are confusing me