สลับค่า 3 ตัวแปรแบบ Cyclic (x→y, y→z, z→x) ผ่าน Pointer (Call by Reference) โค้ดโปรแกรม #include <iostream> using namespace std; void cyclicSwapping(int* x, int* y, int* z) { int temp = *y; *y = *x; *x = *z; *z = temp; } int main() { int x, y, z; cout << Enter