Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ challenge

Name: Anonymous 2011-02-09 9:52

write a program to test, whether the stack grows upwards or downwards

I don't give a fuck about your exotic architecture and neither does anybody else. so please fuck off, ``faggot''.

Name: Anonymous 2011-02-09 10:42

>>6 not on my anus!

int* my_anus()
{
    int y = 0x55667788;
    return &y;
}

int main()
{
    int x = 0x11223344;
    if(&x-(my_anus()) > 0)puts("grows to 0");
    else puts("grows to 0xFFFF...");
}


for better result put my_anus into different translation unit

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List