91_ptr_longlong_arith32.c 266 B

12345678910111213141516
  1. int printf(const char *, ...);
  2. char t[] = "012345678";
  3. int main(void)
  4. {
  5. char *data = t;
  6. unsigned long long r = 4;
  7. unsigned a = 5;
  8. unsigned long long b = 12;
  9. *(unsigned*)(data + r) += a - b;
  10. printf("data = \"%s\"\n", data);
  11. return 0;
  12. }