Question

a. Rewrite the following function so that it returns the same result, but does not increment the variable pt r. Your new program must not use any square brackets, but

must use an integer variable to visit each double in the array. You may eliminate anyunneeded variable. b. Rewrite the following function so that it does not use any square brackets (not even in the parameter declarations) but does use the integer variable k. Do not use any of the functions such as strien, strcpy, etc. c. Now rewrite the function shown in part b so that it uses neither square brackets nor any integer variables. Your new function must not use any local variables other than the parameters. Do not use any of the functions such as strlen, strcpy, etc.

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5