N=(N&(  (~0<<j) | (~(1<<i))) | (M<<i)

With regards,

Praveen Raj
DCE-IT
9999735993
[email protected]



On Tue, Oct 25, 2011 at 11:46 AM, Bittu Sarkar <[email protected]> wrote:

> N = (N | ((1<<(j-i+1)-1)<<i) & (M<<i);
>
>
> On 12 October 2011 01:22, prasad jondhale <[email protected]>wrote:
>
>> grt!!!!
>>
>>  --
>> 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.
>>
>
>
>
> --
> Bittu Sarkar
> 5th Year Dual Degree Student
> Department of Computer Science & Engineering
> Indian Institute of Technology Kharagpur
>
>  --
> 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.
>

-- 
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.

Reply via email to