What is a truth table used for in logic and computer science?
A. To list all possible outcomes of an experiment
B. To evaluate the validity of a mathematical proof
C. To demonstrate the truth values of logical propositions
D. To calculate probabilities in statistical analysis