MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / newNode

Function newNode

Data Structures/BST.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 *newNode(int item) {
12 struct node *temp = (struct node *)malloc(sizeof(struct node));
13 temp->key = item;
14 temp->left = temp->right = NULL;
15 return temp;
16}
17
18// Inorder Traversal
19void inorder(struct node *root) {

Callers 1

insertFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected