For this Python for
loop:
for i in range(n-2,-1,-1):
What is the equivalent code syntax in C++?
For this Python for
loop:
for i in range(n-2,-1,-1):
What is the equivalent code syntax in C++?
The equivalent in C++ would be
for(i = n-2 ; i > -1 ; --i){ /* whatever */ }