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

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

$
0
0
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?: true

x = true, but since x is an int, x= 1The new value of x is 1.

The following is printed:

1


Viewing all articles
Browse latest Browse all 9

Trending Articles





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