i have a program in which i have to input 2 2-d arrays and then compare the elements of both. executing for loop again and again is making the program long. can i make it short. can we pass an array into a function?
jasleen12345
0
Newbie Poster
Recommended Answers
Jump to PostIt is possible as long as your instructor allows it.
It's a good idea to use a function when you can, but in this case it will only save you 1 loop, …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.