Close
Close

void printArray(const std::array<int, 5> &n)??why we are writing &n in the function for passing std::array??

   Kuldeep Kushwaha

void printArray(const std::array<int, 5> &n)

please explain why we are writing &n here.we are calling a function by giving n as argument but in function we are writing const std::array<int, 5> &n??


Answers

Ask Yours
Post Yours
Write your answer