单项选择题

The barrier was used ______ protection which kept the enemy out of frontier towns.

A. as means of
B. as mean of
C. as a means of
D. as a mean of