| Report

What is a difference between (int)x and int(x) in C++?

Topics: c++

1 Replies

| Report
(int)x - C-style conversion (may do a combination of static_cast, reinterpret_cast and const_cast) int(x) - construction int from value x
 Anonym
No regstration needed to add reply
Insert: Picture