Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

How about the opposite? Make 2+3=4, here in C.

    add2And3(int *a, int *b)
    {
       *a = 3;
       *b = 2;
       printf("%d", *a + *b);  //4
    }
    void main()
    {
       int storage;
       add2And3(&storage, &storage);
    }


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: