नोट
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप साइन इन करने या निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
इस पृष्ठ तक पहुंच के लिए प्राधिकरण की आवश्यकता होती है। आप निर्देशिकाएँ बदलने का प्रयास कर सकते हैं।
nonstandard extension used : 'var' : loop control variable declared in the
for-loop is used outside thefor-loop scope
Remarks
When /Ze and /Zc:forScope- are used in a build, a variable declared in a for loop was used after the for-loop scope.
See /Zc:forScope for information about how to specify standard behavior in for loops with /Ze.
This warning is off by default. For more information, see Compiler Warnings That Are Off by Default.
Example
The following example generates C4289:
// C4289.cpp
// compile with: /W4 /Zc:forScope-
#pragma warning(default:4289)
int main() {
for (int i = 0 ; ; ) // C4289
break;
i++;
}