I was wondering if you could use parentheses to group logical and/or "&& ||".
I am writing up the part where I check if the file block is a jpeg and having saved the 512 byte array. I check:
if (buffer[0] == 0xff && buffer[1] == 0xd8 && buffer[2] == 0xff && (buffer[3] == 0xe0 || buffer[3] == 0xe1))
Am I allowed group the "or" like this with a paratheses? Does what I wrote mean that buffer 0-2 must be equal to their counterparts and buffer [3] can be either 0xe0 or 0xe1? Do I even need the parentheses at all, due to order of operation?