can u help me with pointers?plzzzzzzzz
Assignment #2 (Pointers)
Problem (1) (Array of pointers to Functions that manipulate pointers)
Use pointer operations only to manipulate the array elements.
Use an array of pointers processNumbers where each element of the array points to one of the above functions.
a) Write a function addElement that takes as parameters: a pointer to a sorted array of integer numbers, array size (number of elements stored in the array), and the number to be inserted in the array. The function should insert the element in the proper position to keep the list sorted. Use pointer operations to access the elements of the array. The function prototype is
void addElement(intt *array, int *sizeptr, int num);
b) Write a function deleteElement that takes as parameters: a pointer to a sorted array of integer numbers, array size (number of elements stored in the array), and the number to be removed from the array. The function should remove the element and keep the list sorted. The function prototype is
void deleteElement(int *array, int *sizeptr, int num);
c) Write a function printArray that takes as parameters: a pointer to array of int numbers and its size. The function should print the contents of the array. The function prototype is void printArray(int *array, int size);
d) Write a function findMaximum that takes as parameters: an array of integer numbers and its size. The function should find the maximum number in the array. Use a suitable prototype.
e) Write a program with a menu driven interface. The program should offer the user 4 options as follows:
Enter a choice:
0 Add a number to the list
1 Remove a number from the list
2 Print the array numbers
3 Find Maximum
4 End program
Problem (2)
a) Write a function findMaxPos that takes as parameters : a pointer which points to a two‑dimensional array array2dptr, number of rows, and number of columns. The function returns the position (row #, column#) of the maximum number in the 2d‑array.The address of any element in the 2d-array with array2dptr pointing to the first element in the array is array2dptr +rownum*colsize+colnum. The function prototype is int find2dTotal(int *, int, int);
b) Write a main program to declare, store values in the 2d-array, and call the above function find2dTotals to display the total of adding the values of the cells.
thanx:confused: :( :confused: :(