Examples of software bugs.1. Off by one. For instance, If you use an 8-bit register or area of memory, you can only have a range of 0 to 255. However, suppose your code is off by one in an operation. One possible outcome is that the program will crash with an overflow error.2. Using the wrong Boolean or numeric operator. You might use "less than" when you mean "less than or equal." Or you may interchange AND and OR. So the logic does not work as expected due to using the wrong word or symbol. You might be trying to trap errors and instead, you cause errors.3. Access after free. If you release a block of memory a program is using, you are not supposed to keep using it. Some other code could be using it. If you read after releasing the block, the data cannot be trusted, since something might have modified it. If you write after releasing the block, you could be corrupting what is used elsewhere.4. Buffer overrun. That is when a memory operation writes more data to a memory location than declared, and puts data past just the location you are modifying. So it ends up corrupting other data or even the program itself, another program, or the operating system. That will certainly lock up the computer with a blue screen.