this is what the code looks like: This C programming assignment comprises three exercises designed to reinforce
Fantastic news! We've Found the answer you've been seeking!
Question:
this is what the code looks like:
Transcribed Image Text:
This C programming assignment comprises three exercises designed to reinforce various fundamental concepts. Each exercise will be executed by discerning between the exercise name stated in the command line arguments. ./hw1 {pointers|structs | malloc} Logistics Your program must not utilize functions from any external C library. In other words, you must code all of the logic as per the standards set forth below. The libraries included in the skeleton code should be all that is required to complete a successful implementation. You are able to create helper functions in order to complete the necessary implementations. However, ensure that the provided function signatures are the functions used for execution. void nested Reverse(int** arr, int rows, int cols) - Write the code required to complete the implementation that will reverse the order of arrays in a 2D array as well as reverse the individual elements of each array inside the 2D array. You should modify the existing array in place you will not return a value to be printed, but instead modify the existing variable by passing it by reference to the function (see skeleton code). Follow the steps outlined in main() to implement nested Reverse(). You must implement all logic yourself without any use of external library reverse functions. This is also the case with reading the command line arguments (do not use scanf() - we will check). Input Format: Your program will accept the number of rows, the number of columns, and the elements to be inserted into the 2D array as a command line arguments. After parsing this data, your function will accept a double pointer reference to the 2D integer array, the number of rows as an integer, and the number of columns as an integer. ./hw1 pointers {rows} {cols} {elements} This C programming assignment comprises three exercises designed to reinforce various fundamental concepts. Each exercise will be executed by discerning between the exercise name stated in the command line arguments. ./hw1 {pointers|structs | malloc} Logistics Your program must not utilize functions from any external C library. In other words, you must code all of the logic as per the standards set forth below. The libraries included in the skeleton code should be all that is required to complete a successful implementation. You are able to create helper functions in order to complete the necessary implementations. However, ensure that the provided function signatures are the functions used for execution. void nested Reverse(int** arr, int rows, int cols) - Write the code required to complete the implementation that will reverse the order of arrays in a 2D array as well as reverse the individual elements of each array inside the 2D array. You should modify the existing array in place you will not return a value to be printed, but instead modify the existing variable by passing it by reference to the function (see skeleton code). Follow the steps outlined in main() to implement nested Reverse(). You must implement all logic yourself without any use of external library reverse functions. This is also the case with reading the command line arguments (do not use scanf() - we will check). Input Format: Your program will accept the number of rows, the number of columns, and the elements to be inserted into the 2D array as a command line arguments. After parsing this data, your function will accept a double pointer reference to the 2D integer array, the number of rows as an integer, and the number of columns as an integer. ./hw1 pointers {rows} {cols} {elements}
Expert Answer:
Related Book For
Posted Date:
Students also viewed these databases questions
-
Giving a suitable example, explain the effect in C++ of qualifying a member function (method) with virtual. [3 marks] (e) Recode the following Java code in C++. Minor syntactic errors will not be...
-
Air Asia is pursuing a strategy to become a "retailer" of travel/tourism services, selling more than airline products. 1. What is the reason behind this? 2. the pros and cons? What are other similar...
-
For each of the accompanying diagrams, calculate the area of the shaded right triangle. Panel (a) Panel (b) 100 80 60 F 40 20 0 5 10 15 20 25 x Panel (c) Panel (d) 50 40 30 20 10 F 10 4 0 10 20 30 40...
-
Use indirect truth tables to determine whether the following arguments are valid or invalid. 1. B C C B 2. E F E F 3. P (Q R) R S P S 4. (I I)/ (I I) 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15....
-
You are the in-charge accountant examinng the financial statements of the Gutzier Company for the year ended December 31, 19X0. During. late October, 19X0, you, with the help of Gutzler's controller,...
-
Star Company purchased a computer on January 2, 2012, at a cost of $2,500. The computer is expected to have a useful life of five years and a residual value of $250. Assume that the computer is...
-
A site is available at a purchase price of GH 1 5 0 , 0 0 0 and it is anticipated that planning permission could be obtained for a factory of 7 5 0 0 m 2 or an office block of 1 7 5 0 0 m 2 . The...
-
Franklin Construction entered into a fixed price contract to build a freeway-connecting ramp for $25 million. Construction costs incurred in the first year were $38 million and estimated remaining...
-
What are some of the key assumptions required to prepare an operating budget?
-
What are the primary differences between conventional budgets and zero-based budgets?
-
Give several examples of indirect and direct costs for a hospitals emergency services department.
-
How are the statistics budget, revenue and expense budgets, and operating budget related?
-
What is meant by the term cost allocation? By the term full costs?
-
If you are conducting a hypothesis test for two sample means and the samples are independent with an n=60 and the p-value of the F-test was .356, which test would you use? A. Paired t test. b. Pooled...
-
How will relating product contribution margin s to the amount of the constrained resource they consume help a company maximize its profits?
-
Briefly explain the connections between values such as effort optimism, utilitarian individualism, and the American economic system. Throughout this chapter, we have identified culture as something...
-
Do you speak a language other than English as a first language? If so, do you want your children and grandchildren to speak that language? In the United States, the tools of government and education...
-
If English is your first language, did your parents or grandparents speak a different first language? How do you feel about your ability (or lack of ability) in that language? In the United States,...
Study smarter with the SolutionInn App