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 == 0xff && buffer == 0xd8 && buffer == 0xff && (buffer == 0xe0 || buffer == 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  can be either 0xe0 or 0xe1? Do I even need the parentheses at all, due to order of operation?