Q:

Is 2+3 considered as a literal?

Suppose i have something like
int x = 2 + 3;

Is x considered to be a literal?

A:

x is a symbol. 2 + 3 is an expression. 2 and 3 are literals.

A:

No, it's two literals in a compile-time constant expression.  Depending on how it gets compiled, you may not be able to tell the difference in the resulting binary.

A:

int - type of the variable, identifier
x   - name of the variable, identifier
=   - assignment
2   - literal
+   - operation between two literals
3   - literal
;   - end of the statement

