... int out, in, min; for(out=0; out<nElems-1; out++) // outer loop { min = out; // minimum for (in= out+1; in& lt;nElems; in+ +) // inner loop if(a [in] ... for algorithms applied to certain complex data structures. In Chapter 8, "Binary Trees," we'll see it used to help traverse the nodes of a tree. In Chapter 13, "Graphs," ... of the inner loop, exiting when it reaches out. Within the inner loop, the two array cells pointed to by in and in+ 1 are compared and swapped if the one in in is larger than the one in in+1....