1. Engineering
  2. Computer Science
  3. the following line of code from figure 313 checks if...

Question: the following line of code from figure 313 checks if...

Question details
  1. 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
Blurred Solution
This question has been solved
Subscribe to see this solution