Okay, just a hint: if you are writing C, C++ or any other compiled language you aren’t doing anyone a favor using one character variable names. It literally costs nothing to make things clear. One character variable names are terrible.
While I’m on it, gotos are similarly bad. If you feel you need to do either of these, DON’T.
A good friend of mine said, jokingly, “Good code is hard to write, it should be difficult to understand!”
I leaned the hard way: global replace a single character name. It’s far easier to do it right than shoot yourself in the foot. Even if it is “index1, index2”’you may want to change those to something more meaningful later on.