What is an expression? What are its components? Explain.
Basically, expression is one row of code in C++.
For example:
a = b;
print("Hello, world");
These are the expressions.
Expression contains of operators (+, -, =, +=, ++, etc), literals (char, int), memory allocation operators (new, delete), conversion operators (static_cast, dynamic_cast), other operators (sizeof, alignof, typeid).
Comments
Leave a comment