answersLogoWhite

0

The value of count should be more than max range of the for-loop.

e.g.

for (index=0;index<n;index++) ....In this case the count (i.e. index) would be more than "n" which is max-range.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Can break statement used in the forloop?

Sure. (You could have tried it yourself.)


What constant is in c?

constant is a fixed value that do not changed during execution constant is a fixed value that do not changed during execution


What is forloop?

For loop is utilize to do any specific work for specific number of times For example to print hello on computer screen 10 time we use For (start = 1; end = 10; start++) count&lt;&lt;"hello"; next


What is the value of an original photo of Mussolini's execution?

value of mussolinis war photos


Difference between numeric constants and numeric variables in qbasic?

A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...A constant is not supposed to change during program execution. A variable may change, in the sense that you assign a value, then another value, then another...


WHAT IS THE name that represents a value that cannot be changed during the program's executiON?

A constant is a name that represents a value that cannot be changed during the program's execution. Constants are typically assigned a value when declared and cannot be reassigned or modified while the program is running.


Write a pseudocode statement that assigns the value 27 to the variable count?

count := 27


How can you write a c program using while loop that will print first ten odd numbers?

#include&lt;stdio.h&gt; int main () { int odd=1; int count=0; while (count++&lt;10) { printf (%d\n", odd); odd+=2; } return 0; }


How do you write an if-else statement that increments the value of count by 1 if the value of total is evenly divisible by four or five and increments the value of count by 2 otherwise?

Here's a code snippet that solves that problem. if((total%5==0) (total%4==0)) { count += 1; } else { count += 2; }


Does an ace count as a one in poker when determining the value of a hand?

Yes, in poker, an ace can count as a one when determining the value of a hand, such as in a straight where the ace can be low.


What variable hasvalue that is read only and cannot be change during the program execution?

A constant is a variable with a value that is set at the time of declaration and cannot be changed during program execution.


What is a named constant?

A named constant is a value that does not change during the execution of a program. It is assigned a name or identifier that represents the value, making the code more readable and easier to maintain. Named constants are typically declared at the beginning of a program and are used when a value needs to remain constant throughout the program's execution.