当前位置:网站首页>C中的数据存储
C中的数据存储
2022-08-03 19:27:00 【Naunyang】
这样一个现象:
一个函数的返回值是int16类型的。但当返回的参数值大于32767的时候是如何的现象。可以正常返回,接收返回值的变量可以容纳返回值即可。
如下边程序:
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
int16_t get_parameter_value(int a,int b)
{
return a+b;
}
int main()
{
uint16_t value = 0;
value = get_parameter_value(0xA801,1);
printf("value = %d\n",value);
printf("value = %x\n",value);
printf("Hello world!\n");
return 0;
}
边栏推荐
- Kettle 读取 Excel 数据输出到 Oracle 详解
- MySQL master-slave, 6 minutes you master!
- LOL英雄联盟卡顿掉帧问题解决办法 2022年8月1日
- Zhong Hua, senior architect of Ali: China-Taiwan strategic thinking and architecture practice; including internal implementation manual
- 微信小程序分享功能
- LeetCode 952. Calculate Maximum Component Size by Common Factor
- DeepMCP网络详解
- Network protocol-TCP, UDP difference and TCP three-way handshake, four wave
- relocation R_X86_64_PC32 against,/usr/bin/ld: final link failed: Bad value
- 钱江摩托某型号产品ECU货不对版 消费者知情权应如何保障?
猜你喜欢
京东云发布新一代分布式数据库StarDB 5.0
设备树基本原理与操作方法
钱江摩托某型号产品ECU货不对版 消费者知情权应如何保障?
Solution for no navigation bar after Word is saved as PDF
MySQL超详细安装教程 手把手教你安装MySQL到使用MySQL 最简单的MySQL安装方式,这种方式装,卸载也简单
揭秘5名运维如何轻松管理数亿级流量系统
Teach you to locate online MySQL slow query problem hand by hand, package teaching package meeting
丙二醇二乙酸酯(Propylene Glycol Diacetate)
MySQL【变量、流程控制与游标】
Radondb mysql installation problems
随机推荐
The ecological environmental protection management system based on mobile GIS
MySQL读写分离的三种实现方案
高效目标检测:动态候选较大程度提升检测精度(附论文下载)
软件测试回归案例,什么是回归测试?
CS kill-free pose
要想成为黑客,离不开这十大基础知识
Zhong Hua, senior architect of Ali: China-Taiwan strategic thinking and architecture practice; including internal implementation manual
【QT】入门心法
Rust:多线程并发编程
网络协议-TCP、UDP区别及TCP三次握手、四次挥手
开源教育论坛| ChinaOSC
力扣刷题之分数加减运算(每日一题7/27)
net-snmp编译报错:/usr/bin/ld: cannot find crti.o: No such file or directory
Brush the topic of mobile zero power button
虚拟机vmware设置桥接模式上网
Jingdong cloud released a new generation of distributed database StarDB 5.0
力扣刷题之移动零
1-php学习笔记之数据类型
系统太多,多账号互通如何实现?
Introduction to Cosine Distance