Step 1: Understanding hydrocarbons.
Alkanes are saturated hydrocarbons with single bonds only.
Step 2: General formula.
For alkanes, the formula is:
\[
C_nH_{2n+2}
\]
Step 3: Examples.
Methane: \(CH_4\) (n=1), Ethane: \(C_2H_6\) (n=2).
Step 4: Conclusion.
Thus, correct general formula is \(C_nH_{2n+2}\).