@tarun no it wont gv u the 2 digits dat way...the numbers are stored in binary format not BCD...ur jst extracting the two nibbles like dat not the tens and unit's digit of the number...
On Fri, Aug 12, 2011 at 12:17 AM, Tarun Arya <[email protected]> wrote: > RAHUL@ > d question was to reverse d 2 numbers...it can b done by wat i hav said... > if u want 2 extract numbers then.... > a&0x0f //this wil giv number in units place... > a&0xf0 a>>4//this wil give number in tens place > > correct me if i m wrong > Tarun > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- Aditi Garg Undergraduate Student Electronics & Communication Divison NETAJI SUBHAS INSTITUTE OF TECHNOLOGY Sector 3, Dwarka New Delhi -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
