हिंदी

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

प्रश्न

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)); 
एक शब्द/वाक्यांश उत्तर

उत्तर

c

shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 2: Library Classes - EXERCISES [पृष्ठ १७८]

APPEARS IN

अविचल Computer Applications [English] Class 10 ICSE
अध्याय 2 Library Classes
EXERCISES | Q IV. 7. | पृष्ठ १७८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×