fork download
  1. #include<stdio.h>
  2.  
  3. typedef struct {
  4. int (*data)[3];
  5. int (*method[5])();
  6. } obj;
  7.  
  8. int sum (obj *this) {
  9. return (*this->data)[0];
  10. }
  11.  
  12.  
  13. int main() {
  14. obj *o;
  15. o->method[3] = sum;
  16.  
  17. (*(o->method)[3])(o);
  18. }
Runtime error #stdin #stdout 0.01s 1716KB
stdin
stdout
Standard output is empty