What is the range of character constant in C?

June 2023 · 1 minute read

The length of a character constant must be in the range of 0 to 2000. Each character occupies one byte of memory. If a character constant appears in a numeric context (such as an expression on the right side of an arithmetic assignment statement), it is considered a Hollerith constant.

What is multi-character constant in C?

Multi-character constants can consist of as many as four characters. For example, the constant ‘

ncG1vNJzZmivp6x7or%2FKZp2oql2esaatjZympmekpLxuucCnsGabmJa%2Foq%2FTnqmsZZmjeqS0wKuYnKyVp3qku82sq5qmpGKwqbHCpGSirF2kwrV5x56pnmWnna61ecisZK2glWK%2ForrGnmSonl2YtaK%2BwJyrnqpdmLyvv9Oapa1lmaN6pHs%3D