हिंदी

Give the output of the following method definition and also write what mathematical operation it carries out: void test3(char c) { System.out.println( (int) c); } if 'm' is passed to c. - Computer Applications

Advertisements
Advertisements

प्रश्न

Give the output of the following method definition and also write what mathematical operation it carries out: 

void test3(char c)
{
    System.out.println( (int) c);
}

if 'm' is passed to c. 

संक्षेप में उत्तर

उत्तर

109
(The mathematical process carried out is to display the ascii value of a character).

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 5: User - Defined Methods - EXERCISES [पृष्ठ ३३६]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 5 User - Defined Methods
EXERCISES | Q IV. 3. | पृष्ठ ३३६
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×