To determine the number of carbon atoms in a molecule of table sugar, we need to examine its molecular formula, which is [tex]\( C_{12}H_{22}O_{11} \)[/tex].
In this formula:
- [tex]\( C \)[/tex] stands for carbon.
- The subscript number following [tex]\( C \)[/tex] tells us the number of carbon atoms in one molecule of the compound.
Here, the subscript following [tex]\( C \)[/tex] is 12. This indicates there are 12 carbon atoms present in one molecule of table sugar.
Therefore, the number of carbon atoms in a molecule of table sugar is:
[tex]\[
\boxed{12}
\][/tex]
The correct answer is B. 12.