The correct answer is: C. When they agree upon the same thing in the same sense.

Under the Indian Contract Act, 1872, consent is defined as "the concurrence of two or more minds in the same intention." This means that for a contract to be formed, there must be an offer, an acceptance, and an intention to create legal relations. The offer must be made by one party and accepted by the other party. The acceptance must be communicated to the offeror, and it must be unconditional. The parties must also intend to create legal relations.

In the case of A, the acceptance is made by the party to whom the proposal is made. This is not enough to constitute consent, as the parties must also agree upon the same thing in the same sense.

In the case of B, the acceptance is made by another person other than the person to whom the proposal is made. This is also not enough to constitute consent, as the parties must agree upon the same thing in the same sense.

In the case of D, both the parties agree upon a thing in the way it is understood by them. This is the correct definition of consent under the Indian Contract Act, 1872.