public static void main(String[] args) { char c = 'c'; String result = (c > 'C') ? "c is greater than C " : "c is smaller than C"; System.out.print(result); }
char c = 'c';
String result = (c > 'C') ? "c is greater than C " : "c is smaller than C";
System.out.print(result);
}
Var = (boolean expression) ? true case : false case
lowercase letters are greater than uppercase letters.
C Programming Language
Access: Public Instant Grading
Jobilize.com uses cookies to ensure that you get the best experience. By continuing to use Jobilize.com web-site, you agree to the Terms of Use.