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 0:40

Now Sturmy Smabie Smabie Smabie is a Drepper Drepper Drepper

size_t strlcpy(char *to, const char *from, size_t size)
{
        const char *save = from;

        for (size--; (*to = *from++) != '\0'; to += !!size, size -= !!size)
                ;
        return from - save - 1;
}

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