Guest User

Untitled

a guest
Feb 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<stdlib.h>
  3.  
  4. struct Node {
  5. int data;
  6. };
  7.  
  8. int main() {
  9. struct Node* node = NULL;
  10. // allocate node to heap
  11. node = (struct Node*)malloc(sizeof(struct Node));
  12. node->data = 1;
  13. printf(" %d ", n->data);
  14. return 0;
  15. }
Add Comment
Please, Sign In to add comment