system
1
I accidentally used a pling (!) character instead of a bar (|) in a piece of code
TCCR1A != (1 << WGM10);
The code compiled ok but correcting the error changed the program size by 4 bytes.
Is the pling used for bitwise operations or should the syntax checker have flagged an error?
system
2
The exclamation point is used in C as logical negation. != is "Not Equal".
If you compiled with appropriate warnings enabled this would have given you the warning 'filename:linenumber: warning: statement with no effect'
Normally you would use !=
if(a != b )
{
// Code inside here will only run if a is not equal to b
}