fork download
  1. #include <stdio.h>
  2.  
  3. #define BYTE unsigned char //size: 8 bits
  4. #define WORD unsigned short //Size: 16 bits
  5. #define LWORD unsigned int //Size: 32 bits
  6. #define SBYTE signed char //size: 8 bits
  7. #define SWORD signed short //Size: 16 bits
  8. #define SLWORD signed int //Size: 32 bits
  9. #define VBYTE volatile unsigned char //size: 8 bits
  10. #define VWORD volatile unsigned short //Size: 16 bits
  11. #define VLWORD volatile unsigned int //Size: 32 bits
  12. #define VSBYTE volatile signed char //size: 8 bits
  13. #define VSWORD volatile signed short //Size: 16 bits
  14. #define VSLWORD volatile signed int //Size: 32 bits
  15.  
  16.  
  17. int main(void) {
  18. // your code goes here
  19.  
  20. typedef struct _MAddr_ // Management Address
  21. {
  22. // Total 20 Bytes
  23. BYTE *p08PageBuf; // Input: start buffer pointer 1
  24. LWORD u32Opt; // Input: 4
  25. LWORD u16Blk; // Input: 4
  26. WORD u16Page; // Input: 2
  27. BYTE u08Sect; // Input: Start Sector 1
  28. BYTE u08Cnt; // Input: Read Sector Counts 1
  29. BYTE u08CE; // Output: CE of input block 1
  30. BYTE u08LUN; // Output: LUN(Die) select of CE 1
  31. WORD u16HPage; // Input: For TLC Seed selection 2
  32. } MAddr;
  33.  
  34.  
  35. MAddr abc;
  36.  
  37.  
  38. printf("%d \r\n",sizeof(abc)>>2);
  39.  
  40.  
  41.  
  42. return 0;
  43. }
  44.  
Success #stdin #stdout 0s 5280KB
stdin
Standard input is empty
stdout
6