↧
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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer by Ignacio Vazquez-Abrams for what is the meaning of == sign?
Equality. It returns 1 if the operands are equal, 0 otherwise.
View Articlewhat 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
More Pages to Explore .....