Question:

According to the C++11 standard, what is the output of this program?

#include <iostream> 

typedef long long ll;

void foo(unsigned ll) {
    std::cout << "1";
}

void foo(unsigned long long) {
    std::cout << "2";
}

int main() {
    foo(2ull);
}

 

Answers:


Keywords:

© 2017 QuizBucket.org