What will be printed out as a result of the following code execution?
#include <iostream>

typedef    int***    INT;

template <typename T>
struct  S {
    enum    {result = 2};
};

template<typename T>
struct S<T*> {
    enum {result = 1 + S<T>::result};
};

int main() {
    
    std::cout << S<INT>::result;
    return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes