Computer Science, asked by sethsaksham17, 9 months ago

State the value for x if :
char a = 'A'; int x;
x = a=='a' ? 'A' : 'a';

Answers

Answered by Oreki
2

Answer:

x = 97

Explanation:

char a = 'A';

int x;

a ==> 'A'

x ==> 0

x = a = = 'a' ? 'A' : 'a';

a ==> 97

Similar questions