What is Branching Within a Program?

avatar
Alan Leal
Calendar icon
August 12, 2019

In computer science, “branching” is a set of instructions. You’re basically asking the computer to execute various parts of your program instead of executing it one-by-one and in order.

In high-level languages, you can implement branching through control flow statements:

  • If Statements
  • Goto Statements
  • While Loops
  • For Loops

You can even implement branching to the computer’s bare metal, such as its CPU. However, these instructions are much simpler in scope than those in high-level languages.

LinkedInTwitterFacebookEmail