+ 11
How can i reverse the output of the following code for making it binary representation?
11 Respostas
+ 5
Koli
First store the output in an array or a string and then print it in reverse order.
See this I modified your code..
https://code.sololearn.com/c59K52xoUPik/?ref=app
+ 5
Save and output in reverse order.
+ 4
Thanks! sis you are great đ. Really helpfull! đ
+ 4
Koli your welcome, & happy to help:)đ
+ 3
I want to amend my code in this way that the output will be reverse of current output.
Like when I input with a number 20.it outputs 00101.
But I want reverse of it i.e 10100.
+ 2
Rrss Ttt your question is unrelated to this topic. Please start a new Q&A post and ask your question there.
+ 2
Just Incase you want to know about c++11 iterators, I've reversed the string in one line by doing some modifications to Darpan kesharwani code
https://code.sololearn.com/c3un78P8XIyx/?ref=app
+ 2
Thanks Darpan kesharwani and Runtime Terror !
+ 2
look at this code = https://code.sololearn.com/cim7mss8Nhcr/?ref=app
0
what is the difference pass by value and pass by refference?