Quantcast
Channel: what is the meaning of == sign? - Stack Overflow
Viewing all articles
Browse latest Browse all 9

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

$
0
0

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) does not have a boolean type, the expression evaluates to an integer.


Viewing all articles
Browse latest Browse all 9

Trending Articles



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