arduino - Can you explain me (int i=0; i<8; i++, data>>=1)? -
i know loop needs in form of (initialization; condition; increment) in case there fourth part, know does?
there no fourth part.  third part contains comma operator allows put various statements if 1 can't use {}.  pretty time i've ever used them (and while ) have single place want more 1 thing.
in case, last part of loop both incrementing (i++) , shifting data right once (dividing 2) @ end of each iteration
Comments
Post a Comment