【C++】第一章:输出语句中对表达式处理

cout的输出顺序:

计算顺序:自右向左
输出顺序:自左向右

#include <iostream>
using namespace std;
int main()
{
	int a=4;
	cout<<a<<a++<<endl;
	return 0;
}

运行后:
在这里插入图片描述

发布了19 篇原创文章 · 获赞 0 · 访问量 229

猜你喜欢

转载自blog.csdn.net/weixin_44825297/article/details/104815483
今日推荐