![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
嵌入式交流
嵌入式
展开
-
2021-06-20
用C语言输出地址#include <stdio.h>int main(){int a = 100;char str[20] = “c.biancheng.net”;printf("%#X, %#X\n", &a, str); //%#X表示以十六进制形式输出,并附带前缀0Xreturn 0;}运行结果:0X28FF3C, 0X28FF10原创 2021-06-20 18:49:12 · 87 阅读 · 0 评论 -
2021-06-19
1.查找算法之查找重复算法//查找重复void searchRepeat(int *arr, int num, int searchKey){for (int i = 0; i < num; ++i){for (int j = i+1; j < num; ++j){if (arr[i]==arr[j]){LOGI(“repeat num index:%d”, i);break;}}}}原创 2021-06-19 01:36:46 · 71 阅读 · 0 评论