current position:Home>Why not exchange? C language pointer

Why not exchange? C language pointer

2022-02-02 14:12:51 CSDN Q & A

img




Refer to the answer 1:

int t
t = *p
*p = *q
*q = t
Swapping pointer variable names cannot change values




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202021412501125.html

Random recommended