Passing Pointer-To-An-Array Through Function
I want to pass a pointer-to-an-array through a function and print the data in the array. I dont know why its giving junks...! Please tell me where i am wrong and how to achieve this? Please note that i want to do this only through function as shown in the code. Pls. help.
Here is the code:
Re: Passing Pointer-To-An-Array Through Function
First let me clarify you that Array always passes to functions through pointer,the base address of array...As you are beginner,I have two solutions for you.
|All times are GMT +5.5. The time now is 09:44.|