Computer Science, asked by harshitgoyal601699, 3 months ago

distinguish between operator and expression​

Answers

Answered by SweetestBitter
8

_________________________

\huge{\textbf{\textsf{{ ☆ AN}}{\purple{SW}}{\pink{ER ☆} \: {{}{:}}}}}

Operators :

Operator is a representation of Mathematical operation.

  • Arithmetic Operators (+ - * / % ++ --)
  • Relational Operators ( == != < > <= >=)
  • Logical Operators (&& || ! )
  • Bitwise Operators (^ & | ~ )
  • Assignment Operators ( = += -= *= /= %= <<= >>= &= ^= |=)
  • Misc Operators (sizeof() * & ?:)

Expression :

Expression is a statement that can convey a value.

  • int A = 10
  • int B = 25
  • int C = A + B

_________________________

Answered by yuvanshisuryavanshi1
0

Explanation:

Expression perform specific action, based on a operator, with one or two operands. An operand can be a constant, a variable or a function result. Operators are arithmetic, logical, and relational. As with C, some operators vary in functionality according to the data type of the operand specified in the expression.

Hope It Helpful

Similar questions