Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

so here is the code #include #include void somefunction(int* ptr); int main(void

ID: 3659182 • Letter: S

Question

so here is the code #include #include void somefunction(int* ptr); int main(void) { int array[99]; .... ............ ............ somefunction(array); } void somefunction(int* ptr) { int temp; for(int i.......) { temp = *(ptr + i); *(ptr + i) = *(ptr+ i + 1); *(ptr + i + 1) = temp; <-------------- } } so essentially i am creating an array of random numbers and bubble sorting the array in somefunction now as you can see thats not the originally code but where i am having the problem is *(ptr + i + 1) = temp; i get and error along the lines of types do not match int* and int please tell me what im doing wrong =)

Explanation / Answer

its very difficult to understand the question as data is not clear... post the question rather in a proper tables or images so dat i can solve it and give u the best possible answer...