English

State the values of n and ch. char c = 'A'int n = c + 1;char ch = (char)n; - Computer Applications

Advertisements
Advertisements

Question

State the values of n and ch. 

char c = 'A'
int n = c + 1;
char ch = (char)n;

One Line Answer

Solution

The value of n = 66 and ch = B. 

shaalaa.com
  Is there an error in this question or solution?
Chapter 1.03: Values and Data Types - Review Insight [Page 30]

APPEARS IN

Avichal Computer Applications [English] Class 10 ICSE
Chapter 1.03 Values and Data Types
Review Insight | Q 10. | Page 30
Avichal Computer Applications [English] Class 10 ICSE
Chapter 2 Library Classes
Review Insight | Q 8. | Page 175
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×