logo codesdope

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

Write your answer
Close

Welcome.please sign up.

Close

Welcome.please login.