Concept:
Memory hierarchy arranges storage devices according to speed, cost, and closeness to the CPU.
Step 1: Fastest memory.
Registers are inside the CPU and are the fastest.
\[
\text{First} = D
\]
Step 2: Cache memory.
Cache memory is very fast and stores frequently used data near the CPU.
\[
\text{Second} = E
\]
Step 3: RAM.
RAM is slower than cache but much faster than secondary storage.
\[
\text{Third} = A
\]
Step 4: SSD and HDD.
SSD is faster than HDD because it has no moving mechanical parts. HDD is slowest among these.
\[
\text{Fourth} = B
\]
\[
\text{Fifth} = C
\]
Therefore, the correct order is:
\[
D,\ E,\ A,\ B,\ C
\]
\[
\therefore \text{Correct Answer is (C)}
\]