Consider given the given binary operation,
a∗b=a−b
Commutative –
a∗b=a−b
b∗a=b−a
a−b≠b−a
a∗b≠b∗a
Hence, given operation is not commutative.
Associative-
a∗b=a−b
a∗(b∗c)=a∗(b−c)
=a−(b−c)=a−b+c
(a∗b)∗c=(a−b)∗c=(a−b)−c
=a−b−c
Now,
a∗(b∗c)≠(a∗b)∗c
∵a−b+ca≠a−b−c
Hence, given operation is not associative.