Question d’entretien chez Marvell Technology

How would you implement a circular buffer in C?