当前位置:网站首页>Swap two numbers
Swap two numbers
2022-06-26 16:44:00 【Muzi..】
#include<stdio.h>
void fun(int *x,int *y)
{
int t;
t=*x;*x=*y;*y=t;
}
int main()
{
int a,b;
a=8;
b=3;
fun(&a,&b);
printf("%d %d\n",a,b);
}
边栏推荐
- Acid of redis
- R329 (maix-ii-a (M2A) data summary
- 最小二乘系统辨识课 中篇:递归最小二乘
- 心情不好,我就这样写代码
- 网页课程设计大作业——华山旅游网
- GUI+SQLServer考试系统
- 5g is not flat and 6G is restarted. China leads wireless communication. What is the biggest advantage of 6G?
- Data analysis - numpy quick start
- Least squares system identification class II: recursive least squares
- Stm32h7b0 replaces the h750 program, causing the MCU to hang up and unable to burn the program
猜你喜欢

IAR engineering adapts gd32 chip

构造函数和析构函数

What does the inner structure of the neural network "alchemy furnace" look like? An interpretation of the thesis by the doctor of Oxford University

【毕业季】致毕业生的一句话:天高任鸟飞,海阔凭鱼跃
Scala Basics (II): variables and data types

基于Kubebuilder开发Operator(入门使用)

In a bad mood, I just write code like this

Arduino UNO + DS1302简单获取时间并串口打印

Kubecon China 2021 Alibaba cloud special session is coming! These first day highlights should not be missed
Redis Guide (8): principle and implementation of Qianfan Jingfa distributed lock
随机推荐
What is flush software? Is it safe to open an account online?
Some instance methods of mono
[graduation season] a word for graduates: the sky is high enough for birds to fly, and the sea is wide enough for fish to leap
Redis migration (recommended operation process)
Keepalived 实现 Redis AutoFailover (RedisHA)
用Attention和微调BERT进行自然语言推断-PyTorch
Fgetc() reads content from file
【力扣刷题】11.盛最多水的容器//42.接雨水
Day10 daily 3 questions (3): String Matching in array
MS|谢黎炜组发现混合益生菌制剂及其代谢产物可缓解结肠炎
JS教程之Electron.js设计强大的多平台桌面应用程序的好工具
Vibrating liquid quantity detecting device
探讨:下一代稳定币
Day10 daily 3 questions (1): sum gradually to get the minimum value of positive numbers
Experience in hierarchical debugging of boards and cards
架构实战营毕业设计
Redis顺序排序命令
1-12Vmware新增SSH功能
[Li Kou brush question] monotone stack: 84 The largest rectangle in the histogram
Supplement the short board - Open Source im project openim about initialization / login / friend interface document introduction