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

Sepples quiz

Name: Anonymous 2012-08-31 23:49

What does it output?

using namespace std;
#include <iostream>
int main() {
    try {
        void *(*fp)(const int * const);
        throw fp;
    }
    catch(void *(*e)(int *)) {
        cout << "A" << endl;
    }
    catch(void *(*e)(int * const)) {
        cout << "B" << endl;
    }
    catch(void *(*e)(const int *)) {
        cout << "C" << endl;
    }
    catch(void *(*e)(const int * const)) {
        cout << "D" << endl;
    }
    return 0;
}

Name: Anonymous 2012-09-01 7:31

>13


static char *rcsid = "$OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $";


This is undefined behavior, no matter how many checks you write

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