1. Button cells of different sizes
A pointer takes an LR44 or an LR41, and a small pen light takes a CR1220, a coin cell 12.5 mm across. The code is printed on the old cell or moulded into the barrel.
2. The voltage decides
A pointer built for 1.5 volts will not run properly on a 3-volt cell, and a 3-volt cell in a 1.5-volt pointer can drive the diode harder than it was built for.
3. Alkaline is enough for most pointers
A short laser pointer uses very little power, so an alkaline button cell is the right choice and costs less. A silver oxide cell lasts longer, which buys little in a device used for a minute at a time.
4. Note which way round it goes
Many pointers have a screw cap or a clip that holds the cell in place. Remember the position of the old cell, because one fitted backwards looks exactly like a dead pointer.