单项选择题

定义一个包含3个元素的char型数组x,下列哪种写法是正确的?()

A.char x =new char(3);
B.char x =new char[3];
C.char x[];x =new char[3];
D.char x[3];x =new char[];