Question d’entretien chez Apple

How to determine cache size using a C program?