Why do C and C++ allow the expression (int) + 4*5?

(int) + 4*5;

Why is this (adding a type with a value) possible? (tried with g++ and gcc.)

I know that it doesn't make sense (and has no effect), but I want to know why this is possible.

#c++ #c

1 Likes3.15 GEEK