The answer is: E
Explanation
The correct option is E: C cannot inherit from A.
Explanation:
According to the principle, an illegitimate child may inherit from the mother and her relatives but not from the father and his relatives under Muslim law. This means that the child's relationship with the father is not recognized for the purpose of inheritance.
In this case, C is an illegitimate child of A and B, as they were not married. Therefore, C can inherit from B and her relatives, but not from A and his relatives. C's right to inherit from B is not affected by the fact that C was born out of wedlock.
The other options are incorrect because they either ignore or contradict the principle. C cannot inherit from both A and B, as C is not a legitimate child of A. C cannot inherit from neither A nor B, as C is a legitimate child of B. C cannot inherit from B through A or from A through B, as there is no legal connection between C and A.