Advertisement
Jambix64

SizeOffComplexastruct

Aug 1st, 2016
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdlib.h> // Responsavel por malloc , calloc , realloc e free
  3. using namespace std;
  4.  struct x{
  5.      int x;
  6.      int y;
  7.      int z;
  8.    };
  9. int main(){
  10.    struct x  Strutura;
  11.    int vectorX[50];
  12.  
  13.    cout<<"Tamanho de memoria Usada "<<sizeof(vectorX)+sizeof(x)<<":Bytes"<<endl;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement