Professional Documents
Culture Documents
3. Efficiency:
The software should not make wasteful use of system resources
such as memory and processor cycles.
Maintainability:
It should be possible to evolve the software to meet the changing
requirements of customers.
5. a) Security breach
b) Bugs in the software
6.
7. void swap(int *xp, int *yp)
*xp = *yp;
*yp = temp;
int i, j, min_idx;
// One by one move boundary of unsorted subarray
min_idx = i;
min_idx = j;
if(min_idx != i)
swap(&arr[min_idx], &arr[i]);
int i;
printf("\n");
}
// Driver program to test above functions
int main()
int n = sizeof(arr)/sizeof(arr[0]);
selectionSort(arr, n);
printArray(arr, n);
return 0;