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-09-08 20:39

but will terminate due to OOM on any real computer
This is wrong, ptr may either be garbage collected at the end of each loop, malloc may return null and you cause UB or the compiler may as well optimise it and only keep the while(1).
On shitty systems the program may be killed by OOM.

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