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

C problem

Name: Anonymous 2007-04-10 13:40 ID:YqaTtdxC


main() {
"example";
}


What happends here? Is the string example pushed somewhere?

Name: Anonymous 2007-04-10 15:17 ID:U1arqosk

>>16
That's what I was thinking. Because, according to my debugger, this program skips the "if" statement:
#include <iostream>
using namespace std;

int main()
{
    if("What happens?")
    {
        "Nothing";
    }
    return 0;
}

While this one doesn't:

#include <iostream>
using namespace std;

int main()
{
    if("What happens?")
    {
        cout << "Nothing";
    }
    return 0;
}

Which makes me think the optimizer is being tricky.

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