Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 2nd, 2012  |  syntax: C  |  size: 0.27 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. struct macchina {
  5.     int numposti;
  6.     float velocita;
  7.     int targa;
  8. }
  9.  
  10. int main()
  11. {
  12.    struct macchina *m1;
  13.    m1 = (struct macchina*)malloc(sizeof(struct macchina));
  14.    m1->numposti = 5;
  15.    free(m1);
  16.    return 0;
  17. }