fork download
  1. #include <stdio.h>
  2.  
  3. typedef unsigned char BYTE;
  4.  
  5. typedef struct {
  6. BYTE bMatrix[3][4];
  7. } STRUCTURE;
  8.  
  9. STRUCTURE FillStructure() {
  10. STRUCTURE r = {0};
  11. r.bMatrix[1][1] = 2;
  12. return r;
  13. }
  14.  
  15. int main(void) {
  16. STRUCTURE structure = FillStructure();
  17. float myFloat = structure.bMatrix[1][1] * 0.1;
  18. printf("%f\n", myFloat);
  19. return 0;
  20. }
  21.  
Success #stdin #stdout 0s 2168KB
stdin
Standard input is empty
stdout
0.200000