![]() |
Passing Pointer-To-An-Array Through Function
Hi!
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: Code:
|
Re: Passing Pointer-To-An-Array Through Function
Hi..tppramod,
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. Solution 1:: Code:
char *pNameList = 0;Code:
Enjoy....Buddy......:D |
| All times are GMT +5.5. The time now is 22:44. |