how to print an array in cpp in single line

Solutions on MaxInterview for how to print an array in cpp in single line by the best coders in the world