The sentence should be completed as: “When war breaks out, the president acts as the commander in chief of the armed forces.”

In many countries, including the United States and India, the constitution names the president as the commander or supreme commander of the armed forces, meaning the president holds ultimate civilian authority over military decisions, especially in times of war, even though day‑to‑day operations are handled by military professionals.

When war breaks out, the president acts as the commander in chief of the armed forces.

Information gathered from public forums or data available on the internet and portrayed here.