May 072013
 

What will be the output of the below C++ program:

// Template Function - Not taking class
template <class T, int i> int myFun(){
    T x = 10;
    i = 20; 
}

int main(){
   fun<int, 4>();
   return 0;
}

Continue reading »