Developer community
0 votes
26 views
asked by Expert (11.4k points) 14 22 29 | 26 views

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 by Guru (24.6k points) 29 51 78

Related questions

0 votes
1 answer
0 votes
1 answer
asked by smith Geek (15.3k points) 17 40 60 | 21 views
0 votes
1 answer
asked by kelly johnes Advisor (6.3k points) 5 21 33 | 27 views
+1 vote
2 answers
0 votes
1 answer
asked by sara Guru (24.6k points) 29 51 78 | 25 views
Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

Categories


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

3.8k questions

4k answers

117 comments

10.7k users

3,751 questions
4,046 answers
117 comments
10,709 users