How to reverse a binary number and print its decimal form. Do we have to totally do it using arrays or is there any shortcut?
You can use https://en.cppreference.com/w/cpp/utility/bitset and https://en.cppreference.com/w/cpp/algorithm/reverse
Igor🇺🇦
Roshan
olli
Manav
ברני
klimi
Xudoyberdi
I_Interface
Dima
V01D
Alex
Anunay