Question: PROGRAM WITH C and do all parts. Pls help me with this, and comment on the code to help me understand what does what. Need
PROGRAM WITH C and do all parts. Pls help me with this, and comment on the code to help me understand what does what.
Need a function that swaps 2 characters in a string. You can use either pointers or use the indices to swap them.
Then for the prototype below, I need it to select the character which has the minimum ASCII value in the full string:
char * min_ASCII_value(char string[]);
Then for the prototype below, I need it to sort the characters of the full string from minimum ASCII value to maximum ASCII value.
void sorting_string(char string[]);
Then in the main function, test this code using assert and strcmp. The tests need to be done on both min_ASCII_value and sorting_string.
Use the following libs stdio.h, assert.h, string.h.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
