All quizzes
C++CoreMultiple choice

What is the problem with this function?

int& makeValue() {
    int x = 42;
    return x;   // ?
}