answersLogoWhite

0

Branching in 'C' (or any other programming language) is where the flow of execution of code can change depending on some test condition. In 'C', this can be achieved with the "if" statement or the "switch" statement:

void branching (int i)

{

if ( i < 10) {

// Branch 1 - less than 10

printf("i is less than 10");

}

else {

// Branch 2 - 10 or more

printf("i is greater than or equal to 10");

}

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

What has the author C A Macken written?

C. A. Macken has written: 'Branching processes applied to cell surface aggregation phenomena' -- subject(s): Branching processes, Cell aggregation, Cell membranes, Mathematics


What are branching chains?

Generally branched chain hydrocarbons is where substituent groups (e.g. -methyl, CH3 or -hydroxy, OH) are attached onto the main chain of hydrocarbons. Branching is often used to shorten the chain length of hydrocarbons as shorter chain are more valuable. Branching is a type of reforming or isomerism of hydrocarbons. For example of the branched hydrocarbon of butane changes from: H H H H H CH3 H H - C - C - C - C - H to 2-methylpropane H - C - C - C - H H H H H H H H Very simply branching just changes the shape of a hydrocarbon


When was Branching Out created?

Branching Out was created in 1958-09.


Is the smooth muscle branching or non branching?

branched


How branching differes in roots versus sterms?

Branching in roots is endogenous and in stems it is exogenous


Increase branching of a hydrcarbon has what effect on its octane rating?

Increasing branching in a hydrocarbon generally increases its octane rating. This is because branching reduces the likelihood of pre-ignition or knocking in the engine, which is a common issue with straight-chain hydrocarbons. Branching increases the efficiency of combustion, leading to a higher octane rating.


Do most conifers exhibit excurrent branching or deliquescent branching?

They exhibit excurrent branching because their terminal buds grow tall and straight with branches coming from a large central shaft.


How are dichotomous keys and branching diagrams different?

dichotomus key is a tool that is used by the scientist can use to help identify a particular specimen while branching key is just branching into two.


What is a branching diagram used for?

A branching tree diagram shows prbable evolutionary relationships among organisms


What is branching diagrams used for?

A branching tree diagram shows prbable evolutionary relationships among organisms


Which object found in nature demonstrates the properties of a fractal?

Some examples: a coastline, the tributaries of a river, a branching tree, a snowflake.Some examples: a coastline, the tributaries of a river, a branching tree, a snowflake.Some examples: a coastline, the tributaries of a river, a branching tree, a snowflake.Some examples: a coastline, the tributaries of a river, a branching tree, a snowflake.


The branching tubes within the lungs end at small?

The branching tubes within the lungs end at small alveoli.