Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Loop variables
#6
Actually, the running variable mentioned here only refers to the “for loop”, or am I wrong?

In C forums something like this was immediately criticized as a beginner's mistake:
Code: (Select All)

. . .
int i;
. . .
for (i = 1; i < x; i++)
. . .

Can't one limit "_local" to the for loop?
Reply


Messages In This Thread
Loop variables - by Kernelpanic - 05-18-2024, 08:13 PM
RE: Loop variables - by DSMan195276 - 05-18-2024, 08:20 PM
RE: Loop variables - by SMcNeill - 05-19-2024, 07:45 PM
RE: Loop variables - by Kernelpanic - 05-18-2024, 08:43 PM
RE: Loop variables - by Kernelpanic - 05-18-2024, 09:55 PM
RE: Loop variables - by DSMan195276 - 05-19-2024, 12:43 AM
RE: Loop variables - by Kernelpanic - 05-19-2024, 07:22 PM
RE: Loop variables - by SMcNeill - 05-19-2024, 07:33 PM



Users browsing this thread: 1 Guest(s)