I know how to swap two variables in C++, ie you use std::swap(a,b)
.
Does the C standard library have a similar function to C++'s std::swap()
, or do I have to define it myself?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With