问题 选择题

已知a∈R,函数f(x)=sinx-|a|,x∈R为奇函数,则a=(  )

A.0

B.1

C.-1

D.±1

答案

因为f(x)是R上的奇函数,

所以f(0)=-|a|=0,

解得a=0,

故选A.

问答题
单项选择题