If f(x)=⎧⎨⎩1−[x]1+x,x≠01,x=0 (where [.] denotes the greatest integer function), then f(x) is
If [.] denotes greatest integer function and f(x) = [x] {sinπ[x+1]+sinπ[x+1]1+[x]}, then