Re: What is a "null loop" in the programming language context?



> in the programming language context

Willem probably guessed that from the fact that you were posting here.

Since you're not willing to say where you heard it and in what SPECIFIC context, you're going to be stuck with guesses. So here's one:

for (i=0; i<10; i++)
{
  // a null loop, perhaps?
}

- so called because it does nothing.

It's probably more use where the action is contained in the for statement itself, such as:

char str[32];
for (int i=0; i<32; str[i++]=0) {}
.