Saved Bookmarks
| 1. |
What is type casting? Give one example. |
|
Answer» Typecasting is making a variable of one type, such as an int, act like another type, a char, for one single operation. Example: void main () { int a=5, b=2; float c; c = (float) a / b; } |
|