Write a function that accepts a character ch and a number n as arguments. The function then displays an n x n grid filled with ch. Use the function in a program.
Design a C program to check whether the given strings are Is a Anagram or is not an Anagram".
Implement a C program to count total number of words in a string. The given input words can be of letters, digits and special character. For example, if "I love India" is given as input, the output should be the total number of words is 3".
Design a C program , From a set of array elements, find the number of occurrences of each element present in the given array.
Design a C program to list the
students name in alphabetical
order.
From a set of array elements, find
the number of occurrences of
each element present in the given
array.
Write C program to find the
maximum number from the nxm
array.
Design a C program to find the
largest element of an array.
Design a C program to sort a one dimensional array in ascending order.
Task 2: Find median in a 2D array
Write a function median_2d()that computes the median for a 2D numeric array (matrix). The inputs to the function are a pointer to the start of the array, and its dimensions (rows and cols). Your function should not modify the contents of the original matrix! The function prototype is given below.
float median_2d(float * ptr_array, int rows, int cols);
Domain knowledge:
The median is the middle number in a sorted, ascending or descending, list of numbers and can be more descriptive of that data set than the average.
If there is an odd amount of numbers, the median value is the number that is in the middle, with the same amount of numbers below and above.
If there is an even amount of numbers in the list, the middle pair must be determined, added together, and divided by two to find the median value.
Hint: In memory a 2D array is stored just like a 1D array.