Skip to main content
The 2026 Annual Developer Survey is live— take the Survey today!
A paragraph quote should be a blockquote.
Source Link
Adrian Mole

Basically, the reinterpret_castreinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument.

The static cast convertsA static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and intan int to floatfloat and reinterpret_casting an intint to floatfloat. The result will be totally different.

Basically, the reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument.

The static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and int to float and reinterpret_casting an int to float. The result will be totally different.

Basically, reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument.

A static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting an int to float and reinterpret_casting an int to float. The result will be totally different.

A paragraph quote should be a blockquote.
Source Link
Cadoiz

Basically, the reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

"The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument."

The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument.

The static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and int to float and reinterpret_casting an int to float. The result will be totally different.

Basically, the reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

"The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument."

The static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and int to float and reinterpret_casting an int to float. The result will be totally different.

Basically, the reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument.

The static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and int to float and reinterpret_casting an int to float. The result will be totally different.

Source Link
Tobias Langner

Basically, the reinterpret_cast reinterprets the bit pattern at a specific location as a different type.

See for example here: http://publib.boulder.ibm.com/infocenter/lnxpcomp/v7v91/index.jsp?topic=%2Fcom.ibm.vacpp7l.doc%2Flanguage%2Fref%2Fclrc05keyword_reinterpret_cast.htm

"The reinterpret_cast operator produces a value of a new type that has the same bit pattern as its argument."

The static cast converts the argument instead of just reinterpreting it. You can try this out by static_casting and int to float and reinterpret_casting an int to float. The result will be totally different.

lang-cpp