Which of the following is a valid example of initializing variables, in C?

(A) num=2
(B) int num;
(C) num > 2
(D) int num = 2

Answer: (D) int num = 2