I know registers are inside the CPU and main memory is outside the CPU. But I don't know the location of cache memory.Could you please tell me its location?
It's in the same chip as the processors, you know, the black square one. Physical proximity of the caches to the processors is very important.
Check this image, it's a bit small but I think it 'll do: http://www.techinsight.tv/images/stories/5600/1.jpg
If you notice, Intel processors come with their cache in one package, so that leaves no room for doubt.