Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. struct list{
  2. int a,b,c;
  3. struct list *next, *previous;
  4. }
  5.  
  6. 1) struct list *ptr = (struct list*)malloc(sizeof(struct list*));
  7.  
  8. 2) struct list *ptr = (struct list*)malloc(sizeof(struct list));
  9.  
  10. struct list *ptr = (struct list*)malloc(sizeof(struct list*));
  11.  
  12. struct list *ptr = (struct list*)malloc(sizeof(struct list));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement