English

Find the output of the following program snippet: char ch = 'x'; int n = 5; n = n + (int)ch; char c = (char)n; System.out.println((char)((int)c-26)); - Computer Applications

Advertisements
Advertisements

Question

Find the output of the following program snippet:

char ch = 'x'; int n = 5; 
n = n + (int)ch; 
char c = (char)n; 
System.out.println((char)((int)c-26)); 
One Word/Term Answer

Solution

c

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Library Classes - EXERCISES [Page 178]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
EXERCISES | Q IV. 7. | Page 178
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×