zoukankan
html css js c++ java
用指针返回两个数中较小的一个
#include<stdio.h>
int* small(int* a,int* b);
int main(void)
{
int a,b;
printf("请输入两个数字: ");
scanf("%d%d",&a,&b);
int *s;
s=small(&a,&b);
printf("%d ",*s);
return 0;
}
int* small(int* a ,int* b)
{
return *a>*b?b:a;
}
查看全文
相关阅读:
Linux I/O调度
集群心跳机制
如何修改集群的公网信息(包括 VIP) (文档 ID 1674442.1)
AVL树(平衡二叉树)
二叉搜索树
二叉树及树的遍历
python实现基数排序
python之迷宫BFS
python之迷宫DFS
python实现队列
原文地址:https://www.cnblogs.com/wsq724439564/p/3258162.html
最新文章
29.指针数组和数组指针
28.热键
27.C语言宽字符操作
2.cocos设置背景图片
codeforces 612D The Union of k-Segments (线段排序)
codeforces 615E Hexagons (二分+找规律)
hdu5606 tree (并查集)
poj3630 Phone List (trie树模板题)
hdu5612 Baby Ming and Matrix games (dfs加暴力)
codeforces 29D Ant on the Tree (dfs,tree,最近公共祖先)
热门文章
51nod1428 活动安排问题 (贪心加暴力)
codeforces C. Pearls in a Row map的应用
codeforces D. Area of Two Circles' Intersection 计算几何
codeforces 617C Watering Flowers
innobackupex基于binlog日志的恢复 -- 模拟slave恢复
innobackupex基于binlog日志的恢复 -- 使用mysqlbinlog恢复
innobackupex实现对MySQL的增量备份与还原
innobackupex 全备、增备脚本
innobackupex备份脚本
xtarbackup恢复
Copyright © 2011-2022 走看看