increment and decrements pointer array inside pseudocode