Which of the following statements about the multiplication of two square matrices A and B of the same order is correct?
a) AB need not be equal to BA in general
b) AB=BA for every pair of square matrices of the same order
c) AB is defined only when both A and B are diagonal matrices
d) If A and B are non-singular, then AB=BA