Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
Passing array to a function [pass by reference]
Kaustubh N
Oct 17 2010 6:52 PM
8.1k
Reply
I have declared an array y[21] in main and want to pass it to a function using pass by reference
Plz tell me whats wrong in following statements..
int y[21]; //array declaration
void printfunction(int *y); //protoype
printfunction(y);
//call
what changes are required?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
new to C#, trying to make an array from user input. please help
Winform Child form