给定两个变量的值,将两个 值的内容交换

define _CRT_SECURE_NO_WARNINGS

include<stdio.h>

include<stdlib.h>

int main(){
int a=1;
int b=2;
int c;
c = a;
a = b;
b = c;
printf(“a=%d\n”, a);
printf(“b=%d\n”, b);
system(“pause”);
return 0;

猜你喜欢

转载自blog.csdn.net/qq_43205670/article/details/83515309