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

What will this output?

Name: Anonymous 2016-06-19 12:21

What will this program output?
Good luck, you'll need it!

#include <iostream>
using namespace std;

int main() {
class c {
public:
c() {
void f();
f();
}
};

c my_c();
}

void f() {
cout << "VALID C++" << endl;
}


The answer is absolutely nothing because c my_c(); is a fucking function declaration.

Name: Anonymous 2016-10-29 22:25

>>84
We are not however.
[citation needed]

The standard does not contain the world ``segfault''.
It doesn't have to. This is an OS issue, not a C Standard issue. Regardless of what language your program is written in, accessing illegal memory is a segmentation fault.

Are you aware that 1 might not stand for EXIT_FAILURE on some implementations?
And I'm not assuming that it is. Neither EXIT_SUCCESS == 0 nor EXIT_FAILURE == 1 is guaranteed by the standard; however anything that isn't either EXIT_SUCCESS or 0 should be interpreted as indicating failure.

Again, many assumptions.
Those assumptions were chosen to simplify the discussion of the algorithm.

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