什么是Operator ^ + [英] What is Operator ^+
问题描述
为什么以下程序有效,什么是^ +运算符?
int main()
{
int a = 10;
int b = 20;
int c;
c = a ^ + b;
printf(" Value ===%d",c);
返回0;
}
Why does the following program works, and what is ^+ operator ?
int main()
{
int a = 10;
int b = 20;
int c;
c = a ^+ b;
printf("Value ===%d", c);
return 0;
}
推荐答案
Ja *** **********@gmail.com 写道:
Ja*************@gmail.com writes:
为什么以下程序有效,什么是^ +运算符?
Why does the following program works, and what is ^+ operator ?
c = a ^ + b;
c = a ^+ b;
没有运算符^ +但是有一个一元运算符+(就像那里有一个
一元运算符 - )你在这里使用。
你的,
-
Jean-Marc
There is no operator ^+ but there is an unary operator + (like there an
unary operator -) which you are using here.
Yours,
--
Jean-Marc
3月18日上午8:00,Jack.Thomson ... @ gmail.com写道:
On Mar 18, 8:00 am, Jack.Thomson...@gmail.com wrote:
为什么以下程序有效,什么是^ +操作符?
int main()
{
int a = 10;
int b = 20;
int c;
c = a ^ + b;
printf( 值===%d,c);
返回0;
}
Why does the following program works, and what is ^+ operator ?
int main()
{
int a = 10;
int b = 20;
int c;
c = a ^+ b;
printf("Value ===%d", c);
return 0;
}
没有^ +运算符。声明被解析为
c = a ^(+ b);
There is no ^+ operator. The statement is being parsed as
c = a ^ (+b);
3月18日,6日:17 pm,Jean-Marc Bourguet< j ... @ bourguet.orgwrote:
On Mar 18, 6:17 pm, Jean-Marc Bourguet <j...@bourguet.orgwrote:
Jack.Thomson ... @ gmail.com写道:
Jack.Thomson...@gmail.com writes:
为什么以下程序有效,什么是^ +运算符?
c = a ^ + b;
Why does the following program works, and what is ^+ operator ?
c = a ^+ b;
没有运算符^ +但是有一个一元运算符+(就像有一个
一元运算符 - )你在这里使用。
你的,
-
Jean-Marc
There is no operator ^+ but there is an unary operator + (like there an
unary operator -) which you are using here.
Yours,
--
Jean-Marc
但输出为30,它与加法运算符的作用相同。
But the output is 30, it is acting same as the addition operator.
这篇关于什么是Operator ^ +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!