for
loop structure, which can lead to interesting (even if obfuscated) code. This made me realize something. Consider this:
|
|
|
|
Wikipedia article For loop wrote: |
---|
the initializer and counting expressions are treated as no-ops when omitted |
for
structure execute a NOP on the processor? If it does and in the case of the last one, will it execute it after every loop?
My question is: will the omitted expressions in the for structure execute a NOP on the processor? |
Athar wrote: |
---|
However, you really need to read this and the articles linked on that page: |
for
instead of while
.
|
|