Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- struct Node {
- int data;
- };
- int main() {
- struct Node* node = NULL;
- // allocate node to heap
- node = (struct Node*)malloc(sizeof(struct Node));
- node->data = 1;
- printf(" %d ", n->data);
- return 0;
- }
Add Comment
Please, Sign In to add comment