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

Function newNode

CPP/Trees/Diameter_of_tree.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39struct Node *newNode(int data)
40{
41 struct Node *node = new Node;
42 node->data = data;
43 node->left = node->right = NULL;
44
45 return (node);
46}
47
48// Driver code
49int main()

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected