answersLogoWhite

0

Functions don't simply stop running unless an unhandled exception occurs, in which case the program will crash. It's possible the program is simply trapped inside an infinite loop. However, without knowing what the if statement does it's hard to give any specific advice. Use your debugger to step through the function to see what is really going on.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

A c plus plus statement that invokes a function is known as?

...a function call.


What is the function of visual c plus plus switch condition?

The switch / case statement.


What is a main function in c plus plus?

It is the first function that gets called when the program is executed.


How can write the name in c plus plus language without using cout statement?

I believe, you can use C-function - printf().


Which statement best explains why y equals 15 plus 3x is a function?

If you mean: y = 15+3x then it is the function of a straight line equation.


What statement describes the function c equals 5g plus 8?

It is an equation in two variables, c and g.


What is the deffernce of the switch statement and the if statement in c plus plus?

If statement is single selection statement,whereas the switch statement is multiple selective.


Which statement is not frequently used in C plus plus?

The goto statement.


Why can't the accessor member function change any of the values in a class in C plus plus?

Nothing stops a member function from changing any of the values in a class. By convention, an accessor function is used to give read only access to class data, but that does not mean that it is prohibited from doing so. It is a member function, after all, and it has all the rights of any member function of the class.


What is a block in c plus plus?

Assuming you mean a code block, a group of simple statements enclosed in braces {} is regarded as a code block. In other words, a compound statement. Braces are not required around simple statements except when the statement is the body of a function (where braces are mandatory).


Why is curly bracket used in c plus plus?

Curly braces are used to mark the start and end of a statement, typically used when the statement body consists of two or more individual statements. However they are also used to mark the start and end of a class declaration and function bodies.


Is 2 plus 4 equals 13 a statement?

It is a statement. It is a false statement, but a statement nevertheless.