It is OK to write swap(a,b);
There is an issue when I write swap(&c[0],&d[0]);.
Can anyone explain why?
#include<iostream>
#include<algorithm>
using namespace std;
int main(void){
...READ MORE
Jul 1, 2022
in C++
by
Nicholas
• 7,760 points
•
383 views