Click here to Skip to main content
15,921,779 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have DW in base 16 and I want tosee it as shown at memory in reverse bytes.
for example : Num= 0x5d009a45 and I want to see the number so: Num= 0x459a005d.
Is there a function that does it?
Thanks.
Posted

1 solution

try this :
C#
function reverse (s) {
  return (s === '') ? '' : reverse(s.substr(1)) + s.charAt(0);
}
 
Share this answer
 
Comments
Member 10304617 27-Oct-13 4:02am    
Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900