im

increase_up · November 20, 2024
#include <stdio.h>
#include <stdlib.h>

typedef struct Node {
    int data;
    struct Node leftChild;
    struct Node rightChild;
} node;

void insertData (node* arrPtr, int data) {
    node* new = (node)malloc(sizeof(node));
    
    new->data = data;
    new->rightChild = NULL;
    new->leftChild = NULL;

    if (*(arrPtr) == NULL) arrPtr 
}
int main() {
    printf("Hello world!\n");
    return 0;
}
Output

Comments

Please sign up or log in to contribute to the discussion.