Who was formal teacher of Syed Ahmad Barelvi?

(A) Sheikh Ahmad Sirhindi
(B) Shah Waliullah
(C) Shah Abdul Aziz
(D) None of these

The answer is: (C) Shah Abdul Aziz