+ 1
what is the output of this code? template<class t> void f(t){ static int I=0; cout<<I++; } int main (){ f(1); f(1.0); f(1); }
plz give the solution.
3 Respuestas
+ 1
output is 012
0
I ran the code and it crashed the application.
did you get the same ?
0
yup.