Two symmetric n by n matrices M,N are similar if there exists an invertible n by n matrix T with N=TMT^t.

(A) Show that similar matrices have the same rank.
(B) Show that complex matrices of the same rank are similar.