Hi, can I know why the above program do not change any value at the ouptut shown below after i=5? Thanks...
i= 0nrogramming c++
i= 1niogramming c++
i= 2nimgramming c++
i= 3nimmramming c++
i= 4nimmaamming c++
i= 5nimmaamming c++
i= 6nimmaamming c++
i= 7nimmaamming c++
i= 8nimmaamming c++
i= 9nimmaamming c++
nimmaamming c++
because you already changes those values. you read from 9 to 0 but write from 0 to 9.
when you reach the middle it start reading data wich you just wrote to it.