Question: A void C++ function named f receives one 2D int matrix consisting of 100 rows and 50 columns. Identify function distinct signatures that could be

A void C++ function named f receives one 2D int matrix consisting of 100 rows and 50 columns. Identify function distinct signatures that could be used for this function. Circle one for each answer. For those that are unacceptable, describe why it is an error.

  1. void f(int M[100][50]) ACCEPTABLE UNACCEPTABLE If unacceptable, describe why:

  2. void f(int M[][50]) ACCEPTABLE UNACCEPTABLE If unacceptable, describe why:

  3. void f(int M[100][]) ACCEPTABLE UNACCEPTABLE If unacceptable, describe why:

  4. void f(int M[][]) ACCEPTABLE UNACCEPTABLE

If unacceptable, describe why:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!