[Semibug] Need Help with C language

Jonathan Drews jondrews at fastmail.com
Sun Oct 17 11:43:40 EDT 2021

Hi Folks:

 I am trying to understand the C code in "Numerical Recipes for C". I came across this puzzling

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,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nycbug.org/pipermail/semibug/attachments/20211017/574648bc/attachment.htm>

More information about the Semibug mailing list