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-28 2:35

What will this program output?

#include <stdio.h>

int squareprompt(void);

int x = squareprompt();

int main(void) {
puts("GOODBYE, CRUEL WORLD!");
return 0;
}

int squareprompt(void) {
int n, r;
input:
printf("PLEASE ENTER A POSITIVE INTEGER: ");
scanf("%d", &n);
if (n < 0) goto input;
r = n * n;
printf("SQUARE OF THE NUMBER YOU ENTERED IS %d.\n", r);
return r;
}

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