Hello great people, I have a challenge passing array into functions..
I will be very grateful for quick responses.. THANKS
DubyStev 0 Newbie Poster
Recommended Answers
Jump to Postwhat do you have right now?
Jump to PostThat way u dont have to change ur function template everytime if u wish to change the m x n of ur array...
This doesn't make sense. You never have to change your function template.
Its faster
No, it's not.
#include <iostream> #include …
Jump to PostIf you allocated the arrays dynamically, then you don't have an array object to pass to the function, you only have a pointer to the first element of an array. In other words, the only option you have is to pass by pointer. If you store your 2x2 or 3x3 …
All 10 Replies
NathanOliver 429 Veteran Poster Featured Poster
rubberman 1,355 Nearly a Posting Virtuoso Featured Poster
jaskij 45 Junior Poster in Training
adityatandon 23 Junior Poster in Training
m4ster_r0shi 142 Posting Whiz in Training
adityatandon 23 Junior Poster in Training
deceptikon 1,790 Code Sniper Team Colleague Featured Poster
m4ster_r0shi 142 Posting Whiz in Training
DubyStev 0 Newbie Poster
mike_2000_17 2,669 21st Century Viking Team Colleague Featured Poster
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.