KnowledgeBoat Logo

Output Questions for Class 10 ICSE Computer Applications

Give output of the following method definition and also write the mathematical operation they carry out:


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

if 'm' is passed to c.

Java

User Defined Methods

ICSE

110 Likes

Answer

109

Working

This method prints the ASCII code of its argument. When 'm' is passed to this method, its ASCII code which is 109 gets printed as the output.

Answered By

56 Likes