MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / createnode

Function createnode

CPP/BST/InsertionInABST.cpp:11–16  ·  view source on GitHub ↗

Create a node

Source from the content-addressed store, hash-verified

9
10// Create a node
11struct node *createnode(int item) {
12 struct node *temp = (struct node *)malloc(sizeof(struct node));
13 temp->data = item;
14 temp->left = temp->right = NULL;
15 return temp;
16}
17void inorder(struct node *root) {
18 if (root != NULL) {
19 inorder(root->left);

Callers 1

insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected