إلى كل المبرمجين العارفين بلغة C
أخوتي و أخواتي :
أريد حلا لهذه المسائل فأنا طالب جامعي و أدرس حاليا و كبداية لغة ال C و أنا في بداية دراستي للبرمجة و أريد منكم المساعدة و أرجو أن يكون الحل بلغة C و ليس C++:
]Problem:
1- write a function name ReadArray that takes as parameters an
intger array and its size The function should ask the user to enter
intger numbers and store them in the array. The prototype of the
function is void ReadArray( int [] , int).
2- write a function named PrintArray that takes as a parameter an
array and its size. The function should print the contents of the
array. The prototype of the function is void PrintFunct( int [], int ).
3- write a function named CountOccurences that takes as parameters two integer arrays A and B and their sizes. The function should count the number of elements in the array A that occur in array B. The prototype of the function is int CountOccurences( int A[] , int B[], int sizeA, int sizeB).
4- write a function named SortArray that takes as a parameter an array and its size .The function should sort the array in ascending order. Use an intelligent bubble sort algorithm. The prototype of the function is void SortArray(int[],int).
5- write a main function that calls the functions 1,2,3,4