Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define N 1000000
- int main(void)
- {
- double x[N];
- int i;
- for(i=0;i<N;i++)
- x[i]=i;
- printf("%f Kb \n",sizeof(x)/1024.); // sizeof dá o tamanho da variável em bytes
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement