sir what will happen if we do pre increse like ++x instead of x++ in update section ?
Related to update section of for loop
@avverma11057 update section just update what value it has been given it does not read it so it wont matter if you use pre increase or post increase both will work same.
sir if i use this x in work section then this ++x does create any imoact?
++x first increment x then read the value, so if you are using x while incrementing or decrementing it for example while(--x) then in places like this it can affect else if you just want to increment x and then using somewhere else it wont matter.