In r x c table for test of Independence the degree of freedom is _____________?

In r x c table for test of Independence the degree of freedom is _____________?

A. r + c
B. rc
C. ι r – c ι
D. (r -1) (c -1)