[Semibug] Need Help with C language

Anthony Cascianelli acascianelli at icloud.com
Sun Oct 17 11:54:20 EDT 2021


Ugh. Ignore last email. Long night. Sorry. 

Anthony Cascianelli

> On Oct 17, 2021, at 11:53 AM, Anthony Cascianelli <acascianelli at icloud.com> wrote:
> 
> Bitwise left shift. I think. 
> 
> Anthony Cascianelli
> 
>> On Oct 17, 2021, at 11:44 AM, Jonathan Drews <jondrews at fastmail.com> wrote:
>> 
>> 
>> Hi Folks:
>> 
>> I am trying to understand the C code in "Numerical Recipes for C". I came across this puzzling
>> fragment:
>> 
>> for ( it=1, j=1; j <= n-1; j++ )  it <<= 1;
>> .....
>> .....
>> I know that it << 1 is a bitwise shift operation. What does it <<= 1 mean?
>> 
>> 
>> --
>> Kind regards,
>> Jonathan
>> _______________________________________________
>> Semibug mailing list
>> Semibug at lists.nycbug.org
>> http://lists.nycbug.org:8080/mailman/listinfo/semibug



More information about the Semibug mailing list