单选题

以下代码的功能是(    )

vector<int> v = {3,1,4,2};  
sort(v.begin(), v.end());  
A

升序排序

B

降序排序

C

按绝对值排序

D

随机排序

赣ICP备20007335号-2