gpt4 book ai didi

programming-languages - 使用两个变量而不是三个变量进行交换?

转载 作者:行者123 更新时间:2023-12-04 08:37:55 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Swapping two variable value without using 3rd variable

我们有

int a=4;
int b=7;

我可以在不使用第三个变量的情况下交换这些编号吗?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com