Write a C function void reverse (char *s) that takes a string as input, and reverses the order of its characters and stores in the string. Write a C function int str2int (char *s) that takes string s...

Write a C function void reverse (char *s) that takes a string as input, and reverses the order of its characters and stores in the string. Write a C function int str2int (char *s) that takes string s as parameter and return the integer that s represents. For example, if string s is "123", then the function return integer 123 Write a C function void int2str(int a, char s()) that converts integer a to its string representation and stores in char array s. For example, char ns [11]; int2str (1234, ns); print ("%s", ns); will print 1234. Write a function int POW (int b, int n) that compute the braised to n-th power in O (log n) time. Write functions to process arrays (1D and 2D), select sort, and quick sort. Write functions to process strings.

May 19, 2022
SOLUTION.PDF

Get Answer To This Question

Submit New Assignment

Copy and Paste Your Assignment Here