![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C学习
悟空明镜
做一个快乐和健康的人。
mail:samarxie@126.com
展开
-
C 语言printf打印各种数据类型的方法(u8/s8/u16/s16.../u64/double/float)(全)
首先必须知道u8,s8等数据类型的定义:typedef signed char s8; typedef unsigned char u8; typedef signed short s16; typedef unsigned short u16; typedef signed int s32; typedef unsigned int u32; typedef...原创 2018-08-15 19:10:34 · 86098 阅读 · 6 评论 -
【算法】【指针的妙用】自然数求和1+2+3+..+n,不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)
题目描述求1+2+3+…+n,要求不能使用乘除法、for、while、if、else、switch、case等关键字及条件判断语句(A?B:C)。样例输入 3 5 样例输出 6 15使用等差数列公式n(1+n)/2怎么按照条件来实现算法呢?#include <stdio.h>#include <stdint.h&原创 2018-08-16 19:25:23 · 881 阅读 · 0 评论