1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Law Incorporation [45]
3 years ago
8

Is it possible for the front and rear references in a circular array implementation to be equal?

Computers and Technology
1 answer:
azamat3 years ago
7 0

Answer:

Yes it is possible for the following cases:-

  1. When the queue is full.
  2. When the queue is empty.

Explanation:

When the queue is full the the front and the rear references in the circular array implementation are equal because after inserting an element in the queue we increase the rear pointer.So when inserting the last element the rear pointer will be increased and it will become equal to front pointer.

When the queue is empty the front and rear pointer are equal.We remove an element from queue by deleting the element at front pointer decreasing the front pointer when there is only one element and we are deleting that element front and rear pointer will become equal after deleting that element.

You might be interested in
Mr. Petrucci, owner of the local pizza parlor, supports a free pre-K program in the community even though he does not have child
Shalnov [3]

Answer:  B

Explanation:

5 0
3 years ago
Join array elements to form a string.
Vera_Pavlovna [14]

Answer:

2b2t

Explanation:

2b2t

3 0
3 years ago
Typically , how do people earn income
natima [27]
People earn income by getting jobs and working. When they work, they get paid. That's an income
3 0
4 years ago
Read 2 more answers
What should you adjust to make your hard hat fit properly?
schepotkina [342]
You should adjust the headband to make your hard hat fit properly.
5 0
3 years ago
echnician A says that underinflation can increase the rolling resistance of a tire. Technician B says that underinflation can ca
max2010maxim [7]

Answer:

c)both a and b

Explanation:

If the tires are under inflated the the rolling resistance increases due to more surface are of tire now touches the ground hence there is more friction.Since the rolling resistance increases the tire will face difficulty in turning hence the steering the tires will become more hard.Since rolling resistance is increased so the engine has to work more to run the car hence it will consume more fuel.

4 0
3 years ago
Other questions:
  • Your boss calls you from the road she's trying to connect to the local hotel guest wireless network but there's a yellow shield
    10·1 answer
  • To close a tab, click the ____ button in the web page thumbnail on the tab switcher.
    9·1 answer
  • C programming:
    13·1 answer
  • Which statement about images is correct? A) A virtual image cannot be formed on a screen. B) A virtual image cannot be viewed by
    12·1 answer
  • When reading words using a Scanner object's next method, _________. a. any characters at the beginning of the input that are con
    5·1 answer
  • You work in an office that uses Linux servers and Windows servers. The network uses both the TCP/IP protocol. The Linux server i
    11·1 answer
  • Define operator precedence ? explain with an example.​
    13·1 answer
  • Give the an example of the following .<br>a.)typing software<br>​
    10·2 answers
  • Will give 5 star and mark brainleist
    14·1 answer
  • ANSWERS FOR PLATO!!!
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!