Apple interview question

How to determine cache size using a C program?