static_cast vs no static_cast
Hello. The following code lines do exactly the same thing. Is there any reason to use one over the other?
1 2 3 4 5 6 7 8 9 10
|
#include <iostream>
using namespace std;
int main() {
cout << static_cast<char>(67) << endl;
cout << (char) 67 << endl;
return 0;
}
|
Topic archived. No new replies allowed.