PORTB = pattern ++;
//The author explains te upper code with the code below
pattern = pattern + 1;
PORTB = pattern;
PORTB = ++ pattern; //That's what I think is right
I think this code is wrong, as the post-increment should add 1, after using it in the statement, so for the code below, there has to be an pre-increment e. But as I am not that familiar with c/c++ (only read one book), I wanted to know whether I'm messing something up, or the author is just wrong.
Edit: The Book is not about c/c++, it's about arduino.