Guest User

Untitled

a guest
Sep 5th, 2013
45
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. struct example{
  2. int n;
  3. int flm[];
  4. }
  5.  
  6. struct example *ptr = malloc(sizeof(struct example) + 5*sizeof(int));
  7.  
  8. ptr->flm[0] = 1;
  9.  
  10. struct example{
  11. int n;
  12. int *notflm;
  13. }
  14.  
  15. struct example test = {4, malloc(sizeof(int) * 5)};
  16.  
  17. struct example test;
  18. test.n = 4;
  19. notflm = malloc(sizeof(int) * 5);
Advertisement
Add Comment
Please, Sign In to add comment