425,992 Members | 967 Online
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

# Interchange 2 nibbles of byte

 P: n/a How to interchange the two nibbles of a byte without using any bitwise operator. Jul 19 '05 #1
4 Replies

 P: n/a unsigned char a; a = a * 16 + a/16; But why would you want to do that?? What kind of system doesn't have bitwise operators? -- Lasse Jul 19 '05 #2

 P: n/a On Fri, 14 Nov 2003 08:08:18 +0100, "Lasse Skyum" wrote: unsigned char a;a = a * 16 + a/16;But why would you want to do that?? What kind of system doesn't have bitwiseoperators? Can you say homework assignment? M Jul 19 '05 #3

 P: n/a > Can you say homework assignment? ahh, right... Jul 19 '05 #4

 P: n/a nop i suppose it's the question asked in interviews ;) Lasse Skyum wrote: unsigned char a; a = a * 16 + a/16; But why would you want to do that?? What kind of system doesn't have bitwise operators? -- Lasse Jul 19 '05 #5

### This discussion thread is closed

Replies have been disabled for this discussion.