The output of this program will be "i=3 j=8".

In the statement j = sizeof(++i + ++i), we first evaluate the expression ++i + ++i.

Since i is initially 3, the first ++i increments i to 4, and the second ++i increments i to 5.

Then, ++i + ++i is evaluated as 4 + 5, which is 9.

The sizeof operator then returns the size of the expression, which in this case is 9.

Finally, the value of j is assigned as 9, and the values of i and j are printed.

#includestdiohint main	int i=3;	int j; 	j = sizeof++i + ++i;	printfi=d j=di j;

原文地址: https://www.cveoy.top/t/topic/ilIK 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录