Question: language in C Description: The function takes a string character array and check it is a valid decimal representation of an integer number. Please note

language in C
language in C Description: The function takes a string character array and

Description: The function takes a string character array and check it is a valid decimal representation of an integer number. Please note that using functions like atos) from the Standard Library is not really helpful here since the actual mathematically integer number be larger than the maimum possible value of the type unsigned long long int. Your function must not have any restriction on the integer values the length of the string representation. If str represents an integer, the function must return 1 Otherwise-retum. Examples Return value 23510 1 2319 Olestra spaces in front 1 25417 Onondigt inside the function does not compute expressions simply checks if str represents Integer number or not) Olempty string "570.11" this is a decimal representation of a real number, but not an integer number 200-50 char GetSortingOrder (double arrt), size_t arr_size); Description: The function checks if the array arr (whose elements are of type doubles sorted elements come in non decreasing order the arts are reverse sorted elements come in non increasing order, or sorted Please note that according to this definition, an array whose elements are all equal is both - sorted and reverse sorted. Let us call such an array a constant array Return value the function must return the following values of the array is sorted, then retum 1; . If the array is revene sorted, then return 2: the array is constant, then return 3: . If the array is sorted, then return Page of .theana's size fare_size is zero empty array, then return error codes are often negative - this is not required, but rather is a usual convention in the world of programming 10 Bonus Points if your function will go through the array only one. It is important to reduce the number of operations in your code to make program run faster. For an array of 10 elements this would not be even noticed, but for an array of 2,000,000,000 elements that is very essential Examples: The Array Return value 1-17,5-8-2,1,17,17,17,28 sorted 1289,17,17,17,1,2-5-5-17) 2 reverse sorted 125.25 25 25 25 25 25 3 constant -17.5 10.2.-19.231 sorted 1 fempty array void RemoveExtraSpaces (char txt(1); Description: The function takes a text character and removes the extra spaces: Any spaces at the beginning of the text: Any spaces at the end of the text there are more than one consecutive space character inside the test one space rema and the other ones are removed

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!