Advertisements
Advertisements
प्रश्न
Explain the term type casting.
संक्षेप में उत्तर
उत्तर
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 [पृष्ठ ३३]