SHARE
TWEET

Untitled

a guest Feb 18th, 2019 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top