Improve the following code using typedef.
struct node
{
int data1; float data2;
struct node *left;
struct node *right;
};
struct node *ptr;
ptr = (struct node *) malloc (sizeof (struct node) );5
719 5b5cc7dce4d2b419777515c4
Q: Improve the following code using typedef. struct node { int data1; float data2; struct node *left; struct node *right; }; struct node *ptr; ptr = (struct node *) malloc (sizeof (struct node) );
- Show Answer
- Workspace
- Discuss