________ operator converts an expression to a specified type.
Answers
Answered by
2
heya...cast operator is used to convert any expression to a desired type...
Any integer can be cast to any pointer type. Except for the null pointer constants such as NULL (which doesn't need a cast), the result is implementation-defined, may not be correctly aligned, may not point to an object of the referenced type, and may be a trap representation.
hope this helps you.
please mark me as BRAINLIEST...
Any integer can be cast to any pointer type. Except for the null pointer constants such as NULL (which doesn't need a cast), the result is implementation-defined, may not be correctly aligned, may not point to an object of the referenced type, and may be a trap representation.
hope this helps you.
please mark me as BRAINLIEST...
Answered by
0
Thanks for asking that question. I will tell you the solution.
Cast operator is used to convert an expression to specified type.It will use for explicit type conversion. Cast type returns the exact type of any expression. Also that type casting is used for changing expression e.g. 6 is an integer value then you want to convert it in double value thus it will be like double 6 and it converts in double value. Type cast and cast operator having meaning difference which means cast operator converts expression to its explicit or actual specified value on behalf if you want to change expression type then type_cast will use.
I hope you get my point
Cast operator is used to convert an expression to specified type.It will use for explicit type conversion. Cast type returns the exact type of any expression. Also that type casting is used for changing expression e.g. 6 is an integer value then you want to convert it in double value thus it will be like double 6 and it converts in double value. Type cast and cast operator having meaning difference which means cast operator converts expression to its explicit or actual specified value on behalf if you want to change expression type then type_cast will use.
I hope you get my point
Similar questions