📜  C 编程交换两个变量 - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:39.994000             🧑  作者: Mango

代码示例1
#include 

int main()
{
    int x = 20, y = 30, temp;
    temp = x;
    x = y;
    y = temp;
    printf("X = %d and Y = %d", x, y);
    
    return 0;
}