当前位置:网站首页>If there is a declaration "int x=5, y=1;", Then the expression x < y? The result of x++: y++ is:
If there is a declaration "int x=5, y=1;", Then the expression x < y? The result of x++: y++ is:
2022-07-26 12:34:00 【Sanmu who eats melons】
If there is a statement ”int x=5,y=1;”, Expression x<y?x++:y++ The result is :
1 #include<stdio.h>
2
3 int main(int argc,const char* argv[])
4 {
5 int x=5,y=1;
6 printf("%d",(x<y?x++:y++));
7 return 0;
8 }
expression :x<y?x++:y++
because x++; y++;
++ To the right of the variable , First operation and then self addition 1,
So it's equivalent to :x<y?x:y
边栏推荐
猜你喜欢

Paper reading MLPD: multi label pedestrian detector in multispectral domain (Internship Program of Hikvision Research Institute)

微软关闭了两种攻击途径:Office 宏、RDP 暴力破解

LCD笔记(7)LCD驱动程序框架_配置时钟

行业案例|指标中台如何助力银行业普惠金融可持续发展

HTAP是有代价的

HTAP comes at a price

全国职业院校技能大赛网络安全B模块wirshark数据包分析 wireshark0051.pcap

新功能 | 智能开放搜索上线定制词权重模型

一款超好用的神器Apifox,甩 Swagger 几条街...(荣耀典藏版)

扫雷小游戏——轻松玩上瘾(C语言版)
随机推荐
数据查询函数
二、容器_
JDBC从连接池获取连接(Druid连接池)
Oracle的Windows版本能在linux中使用吗?
实体映射最强工具类:MapStruct真香
How to view encrypted information in text form
Knowledge points of C language documents
三维点云课程(八)——特征点匹配
The significance of Internet of things device encryption
[Anhui University] information sharing of postgraduate entrance examination and re examination
Jsj-3/ac220v time relay
Redis master-slave replication principle
.eslintrc.js配置说明
Transformer dominates the world? Depth wise conv has something to say
Data query where
Detailed interpretation of hole convolution (input and output size analysis)
Use and optimization of MySQL composite index (multi column index)
Can the Windows version of Oracle be used in Linux?
The map function counts the number of occurrences of characters
【Map】万能的Map使用方法 & 模糊查询的两种方式