fork download
  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #define PREFIX "TESTING"
  5. #define MAX_LEN (strlen(PREFIX))
  6.  
  7. struct match_rules {
  8. char name1[MAX_LEN];
  9. };
  10.  
  11. int main(void)
  12. {
  13. struct match_rules rules;
  14.  
  15. printf("size of rules = [%d]\n",(int)sizeof(rules));
  16.  
  17. return 0;
  18. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.c:8:14: error: variably modified ‘name1’ at file scope
stdout
Standard output is empty