fork download
  1. #include <iostream>
  2.  
  3. typedef int MyType;
  4.  
  5. int main()
  6. {
  7. MyType a, b, c;
  8. MyType MyArr[] = { a, b, c};
  9. std::cout << sizeof MyArr / sizeof *MyArr << std::endl;
  10. }
Success #stdin #stdout 0.01s 2680KB
stdin
Standard input is empty
stdout
3