I can see everywhere that the standard for converting, for example, from char to int in C++ is
(int) 'a'
But could I also do this conversion like in python i.e.
int ('a')
? To be clear, it works. I'm just asking if you can do that.
I can see everywhere that the standard for converting, for example, from char to int in C++ is
(int) 'a'
But could I also do this conversion like in python i.e.
int ('a')
? To be clear, it works. I'm just asking if you can do that.