18 Answers
New Answer18 Answers
New AnswerHowever, I am not lazy, so listen me. In most programming languages, the operator "==" compares 2 objects and returns TRUE if they are equal and FALSE otherwise. For example, in C++: bool f = 1 == 1; // f will be TRUE cout << f << endl; // will print 1 bool f = 5 == 1; // f will be FALSE cout << f << endl; // will print 0
it is a equal to operator......... like 5==5 (true) 7==4 (false) & = (single) is the assignment operator...... like int x=6 (means 6 is assigned to variable 'x'
Good day! Are you seriously? You can easily find this information in google or in this application in programming courses.
== means you are comparing one variable with another variable for example i=1,j=1; if(i==j) //true {... j++ } // here j is 2 now... if(i==j) //false { ... }
Basically == means that you are checking what's the value: ex in javascript: var a = 5 if (a ==5)//result is true so the code is executed { alert("True") } if (a==4)//false is not printed because the code is not executed because a is not equal to 4 { alert("False") }
Hey == is a comparative operator, which is used to check whether both operands are equal or not. it is different from normal = because it assigns a value to a variable. the output of == will be boolean that is true or false
meaning of == is comparison operator which means it compares the element either it's true or false. It is mostly used in conditional statements
it means that any value is compared to another value. for example a==b mean a is equal to b. so if it is true or not is another issue which is used in nested operation
Learn Playing. Play Learning
SoloLearn Inc.
4 Embarcadero Center, Suite 1455Send us a message