show value with index in c