Advertisement
vaulttech

Ponteiros - malloc

Mar 25th, 2011
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.13 KB | None | 0 0
  1. // exemplo do uso de malloc()
  2. int *meu_ponteiro = (int*) malloc (sizeof(int) * 10);
  3.  
  4. // exemplo de uso de free()
  5. free (meu_ponteiro);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement