Advertisements
Advertisements
प्रश्न
Give reason whether the following assignment is correct or not.
char ch = "apps";
एक पंक्ति में उत्तर
उत्तर
This assignment is incorrect because "apps" is a string literal, not a character literal, and it is assigned to a variable of the char data type.
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 1.03: Values and Data Types - EXERCISES [पृष्ठ ३३]