Hi guys,
I have a small doubt regarding pointers and functions.
Consider the following prototype
void insert(bst * head, int data);
This function creates a node and inserts the data in the node. Lets say i
call this function iteratively from main.
main(){
bst* record=NULL;
insert(record, 5);
pass a address of pointer.
void insert(bst **head, int data);
call it using insert(record,8).
try this.
On Thu, Jan 27, 2011 at 4:47 PM, nishaanth nishaant...@gmail.com wrote:
Hi guys,
I have a small doubt regarding pointers and functions.
Consider the following prototype
void