wrong6.c 297 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. struct Test {
  3. int a;
  4. char st[10];
  5. };
  6. int main() {
  7. printf("Hello world!\n");
  8. struct Test ar[10];
  9. struct Test b;
  10. printf("Let's index out of bounds \n");
  11. ar[10].a=10;
  12. printf("Did you notice?\n");
  13. printf("There should be 1 error in this run\n");
  14. return 0;
  15. }