- Engineering
- Computer Science
- the following line of code from figure 313 checks if...
Question: the following line of code from figure 313 checks if...
Question details
- The following line of code from Figure 3.13 checks if the buffer is full:
While ((in + 1) % BUFFER_SIZE == out)
What would be the problem if we replace the condition to the following line:
While(in == out)
Explain your answer.
Solution by an expert tutor
