// Could you explain why this happens:
#include <iostream>
int surprise()
{
int j = 0;
if (true) int j = 7;
return j;
}
int main()
{
std::cout << "surprise = " << surprise() << std::endl;
return 0;
}
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment