3,941 views
3 3 votes
Which of the following function singatures are correct for passing a two dimensional array A of 10 rows and 10 columns to a function xyz() in C?

There should not be any compiler error or warning when you do so.

 

A. xyz(int A[])

B. xyz(int *A[])

C. xyz(int A[][10])

D. xyz(int A[10][])

1 Answer

Position:
Show:

Related questions

2 2 votes
1 answers 1 answer
1.4k
1.4k views
rsansiya111 asked Dec 8, 2021
1,372 views
Suppose we do merge sort with a three-way split: divide the array into 3 equal parts, sort each part and do a 3 way merge.What would the worst-case complexity of this ver...
0 0 votes
1 1 answer
2.2k
2.2k views
rsansiya111 asked Dec 8, 2021
2,177 views
Suppose we want to extend the union-find data structure to support the operation Reset(c), which takes as input the name of a component c and then breaks up c into single...
0 0 votes
1 answers 1 answer
1.1k
1.1k views
rsansiya111 asked Dec 8, 2021
1,116 views
Consider the following algorithm on a graph with edge weights.Sort the edges as [e1,e2,...,em] in decreasing order of cost.Start with the original graph. Consider each ed...
0 0 votes
1 1 answer
1.7k
1.7k views
rsansiya111 asked Dec 8, 2021
1,658 views
Consider the following strategy to convert a graph with negative edge weights to one that does not have negative edge weights. Let the maximum magnitude negative edge wei...