हिंदी
तमिलनाडु बोर्ड ऑफ सेकेंडरी एज्युकेशनएचएससी विज्ञान कक्षा ११

Differentiate “=” and “==”. - Computer Science

Advertisements
Advertisements

प्रश्न

Differentiate “=” and “==”.

अंतर स्पष्ट करें

उत्तर

  • ‘=’ is an assignment operator which is used to assign a value to a variable that is on the left-hand side of an assignment statement.
  • ‘=’ operator copies the value at the right side
    of the operator to the left side variable. Ex. num = 10; means 10 assign to the variable num.
  • ‘= =’ is a relational operator. It is used to compare both operands are the same or not.
  • Ex. num = = 10 means it compare num value with 10 and returns true(l) if both are same or returns false(0).
shaalaa.com
Lexical Units (Tokens)
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 9: Introduction to C++ - Evaluation - Section - C [पृष्ठ १३१]

APPEARS IN

सामाचीर कलवी Computer Science [English] Class 11 TN Board
अध्याय 9 Introduction to C++
Evaluation - Section - C | Q 3. | पृष्ठ १३१
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×