Advertisements
Advertisements
प्रश्न
Explain the term type casting.
थोडक्यात उत्तर
Advertisements
उत्तर
This method of type conversion allows users to transform one data type to another based on their choices. This indicates the user expects the system to return the desired data type.
Example:
int a, b;
float x = (float) a + b;
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
पाठ 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]
