Advertisement
luizaspan

Teste stack

Jun 18th, 2015
474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.21 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define N 1000000
  4.  
  5. int main(void)
  6. {
  7.     double x[N];
  8.     int i;
  9.  
  10.     for(i=0;i<N;i++)
  11.         x[i]=i;
  12.  
  13.     printf("%f Kb \n",sizeof(x)/1024.); // sizeof dá o tamanho da variável em bytes
  14.    
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement