You are given have a datatype, say X in C. Determine the size of the datatype,without declaring a variable or a pointer variable of that type, and, of course without using
the sizeof operator!

 

#define sizeof_macro(type_t) ((unsigned)((type_t *)0 + 1))

相关文章:

  • 2021-08-30
  • 2021-09-05
  • 2021-07-26
  • 2022-02-19
  • 2021-08-21
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
  • 2021-07-06
  • 2022-12-23
相关资源
相似解决方案