When should a type cast not be used? Ans. A type cast should not be used to override a const or volatile declaration. Overriding these type modifiers can cause the program to fail to run correctly. A type cast should not be used to turn a pointer to one type of structure or data type into another. In the rare events in which this action is beneficial, using a union to hold the values makes the programmer's intentions clearer. - Study24x7
Social learning Network
20 Mar 2023 12:17 PM study24x7 study24x7

When should a type cast not be used? Ans. A type cast should not be used to override a const or volatile declaration. Overriding these type modifiers can cause the program to fail to run correctly. A type cast should not be used to turn a pointer to one type of structure or dat...

See more

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles