In article <11**********************@o11g2000prd.googlegroups .com>,

<ra******@gmail.comwrote:

>Given two integers A & B. Determine how many bits required to convert

A to B.

integers just -are-, independant of representation. Bits are

a particular representation, and there are an infinite number

of bit representations of any given integer.

>how to write a function int BitSwapReqd(int A, int B);

Note that an 'int' is not an integer: int is only an implementation-

defined subset of integers.

Is there supposed to be a connection between the 'Swap' in the

function name and the earlier requirement about "convert A to B" ?

Swapping implies the exchange of two values, while "convert"

only implies the transformation of one value; the two verbs could

come out with very different results.

--

Is there any thing whereof it may be said, See, this is new? It hath

been already of old time, which was before us. -- Ecclesiastes