Exit when did india and pakistan gain independence?

Aafter world war i
Bafter world war ii
Cafter the cold war
Dafter the indian war