Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
If X is an 8-bit value it can't be more than 255 and a check for less than zero is meaningless if it's an unsigned value so I'm guessing it's an 'int' (signed).
It isn't a function in the programming sense, it's a query. It reads as "if the value of X is more than 255 or the value of X is less than zero". It means the following code will only be executed if X isn't between 0 and 255.
As mentioned by others it depends on the size of X. If X is unsigned int its range is 0 to 65535. The Conditional statement check if X > 255 or X < 0. If any of the 2 condition X > 255 or X < 0 is true then the if condition will be true and the if statement will be executed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.