Multi-choice problem: does word "command" have the same meaning in the following two sentences?

General Smith was placed in command.

An admiral in command.

Choose from:
A). different meanings
B). the same meaning
B).