Quantcast
Channel: what is the meaning of == sign? - Stack Overflow
Browsing all 9 articles
Browse latest View live
↧

Answer by learning for what is the meaning of == sign?

int main() { int x = 2, y = 6, z = 6; x = y == z; printf("%d", x); } let`s start like this: x = (6==6)It asks is 6 equivalent to 6?: truex = true, but since x is an int, x= 1The new value of x is 1.The...

View Article


Answer by Carl for what is the meaning of == sign?

Think about it like this:= means give something a value.== means check if it is equal to a value.For exampleint val = 5; //val is 5//= actually changes val to 3val = 3; //== Tests if val is 3 or not....

View Article

Answer by Gitesh Dang for what is the meaning of == sign?

== operator used for equality..here in u r exampleif y is equal to z then x will hav true value otherwise x will hav false

View Article

Answer by Anil Soman for what is the meaning of == sign?

== means "is euual to". This operator has higher precedece than = (equal to) operator. So the equation x = y == z; will try to assign result of y==z to variable x. which is 1 in this case.

View Article

Answer by Pure.Krome for what is the meaning of == sign?

It's sayingX will equal either true/1 or false/0.another way to look at that line is this: x = ( is y equal to true? then true/1 or false/0 )

View Article


Answer by BillP3rd for what is the meaning of == sign?

The == operator tests for equality. For example:if ( a == b ) dosomething();And, in your example:x = y == z;x is true (1) if y is equal to z. If y is not equal to z, x is false (0).A common mistake...

View Article

Answer by Alex B for what is the meaning of == sign?

It is "equals" operator.In the above example, x is assigned the result of equality test (y == z) expression. So, if y is equal to z, x will be set to 1 (true), otherwise 0 (false). Because C (pre-C99)...

View Article

Answer by Ignacio Vazquez-Abrams for what is the meaning of == sign?

Equality. It returns 1 if the operands are equal, 0 otherwise.

View Article


what is the meaning of == sign?

I am trying to figure out what == sign means in this program?int main(){ int x = 2, y = 6, z = 6; x = y == z; printf("%d", x);}

View Article

Browsing all 9 articles
Browse latest View live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>