answersLogoWhite

0

the simple and efficient way to pass an array is pointer to an array like that

int (*p)[30] ; // pointer to an array of integer having 30 element

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you pass an array as a parameter?

AnswerUnfortunately your question is to broad. All progamming languages vary in the way things are done. I will just give a general way of doing it.You have to pass the multidimensional array into the function by including it with calling the function. On the receiving end you have to declare another multidimensional array so the information can be passed into it. Depending on the language, you may not be passing in a multidimensional array, instead that array may be stored in an object which you can pass instead.Hope this helps some.-Ashat-in C, when passing two dimensional arrays the compiler needs to know the width so it can calculate memory offsets.passing a 2d array of width 4:voidFunc(type array[][4]);


What is the easiest and quickest way to faint?

Hold your breath until you pass out


What is the easiest way to pass a medical terminology test?

study very hard thats the best way to pass medical terminology.


What is the easiest way to pass the Florida defensive driving course?

The easiest way to pass the Florida defense driving course by training driving with lots of traffic, on difficult roads, and with hard climatic conditions.


How do you pass the steam battery puzzle in the easiest way?

you use it to much it will ruined a lot


In what way is an argument passed by so it is not affected by a change of the content of the parameter value?

Pass by value.


How do you pass a drug test easy?

The easiest way would be to be honest and not use drugs at all.


Can element of character arrays be accessed in the same way as the elements of a numeric arrays?

Yes, it can.


How do you pass an array in Java?

The same way you pass any other argument. int[] integerArray = new int[] {5,4,3,2,1}; // Pass our integerArray to the Arrays.sort method Arrays.sort(integerArray);


What is the way by which you can make the user defined the size of the arrays?

By using the library function #define A[] we can define the size of arrays


What is the most efficient way to find the median of k sorted arrays?

One efficient way to find the median of k sorted arrays is to merge all the arrays into one sorted array and then find the middle element. This method has a time complexity of O(n log k), where n is the total number of elements in all arrays and k is the number of arrays.


What is the easiest way to finger?

The easiest way is to thrust a finger in and out of the vagina