>I've changed your function to use pointer arithmetic...
1. *(array+index)
- it's exactly array[index]
definition in C and C++
2. < *lowest
- it's ineffective (slow indirection) variant of the original code with int lowest
3. void sort(int*, int)
- it's absolutely the same function type as void sort(int[],int)
;)
ArkM 1,090 Postaholic
musique 0 Newbie Poster
tux4life 2,072 Postaholic
musique 0 Newbie Poster
ArkM 1,090 Postaholic
musique 0 Newbie Poster
musique 0 Newbie Poster
ArkM 1,090 Postaholic
tux4life commented: You're absolutely right :P +3
ArkM 1,090 Postaholic
musique 0 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.