


What is the correct expression to determine whether the char variable ch is an uppercase letter?
Aug 05, 2020 am 11:02 AMThe correct expression to determine whether the char variable ch is an uppercase letter is "(ch>=' A' )&&(ch<='Z')". Character data is encoded in ASCII code internally in the computer. Stored, English uppercase letters and lowercase letters are consecutive in the ASCII code table.
The correct expression to determine whether the char variable ch is an uppercase letter is "(ch>=' A' )&&(ch<=' Z')".
Character data is stored in ASCII code inside the computer. English uppercase letters and lowercase letters are continuous in the ASCII code table. Capital letters A to Z are from 65 to 90, so as long as the variable ch is greater than A and less than Z, it is guaranteed to be an uppercase letter.
The above is the detailed content of What is the correct expression to determine whether the char variable ch is an uppercase letter?. For more information, please follow other related articles on the PHP Chinese website!

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

What are the alternatives to NULL in C language

Method of copying code by C language compiler

What are the web versions of C language compilers?

Is NULL still important in modern programming in C language?

C language online programming website C language compiler official website summary

C language compiler installation tutorial (computer version)
