search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
22 views
asked Expert 11.4k points 14 22 28

1 Answer

0 votes
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.
answered Guru 24.6k points 29 52 81

Related questions

0 votes
1 answer 165 views
0 votes
1 answer 21 views
21 views
asked smith Geek 15.3k points 16 41 63
0 votes
1 answer 23 views
23 views
asked kelly johnes Advisor 6.3k points 5 21 31
1 vote
2 answers 207 views
0 votes
1 answer 28 views
28 views
asked sara Guru 24.6k points 29 52 81
...