Understand the concepts of IEnumerable, IEnumerator, IComparable, and IComparer interfaces in C.