Lucky hour! Grab a free trial license — offer ends in 00:59:58. Claim now
The analyzer detected a potential error: a variable referring to an outer loop is used in the condition of the 'for' operator.
This is the simplest form of this error:
for (size_t i = 0; i != 5; i++)
for (size_t j = 0; i != 5; j++)
A[i][j] = 0;
It is the comparison 'i != 5' that is performed instead of 'j != 5' in the inner loop. Such an error might be not so visible in a real application. This is the correct code:
for (size_t i = 0; i != 5; i++)
for (size_t j = 0; j != 5; j++)
A[i][j] = 0;
This diagnostic is classified as:
|
You can look at examples of errors detected by the V534 diagnostic. |
Was this page helpful?
Your message has been sent. We will email you at
If you do not see the email in your inbox, please check if it is filtered to one of the following folders: