I have this piece of code:
struct minMaxValue{ int value; int index; }; minVal = maxVal = rcvBuff[0];