answersLogoWhite

0

What are character constants?

User Avatar

Anonymous

12y ago
Updated: 8/20/2019

A character constant is a single character in the host's character set, such as 'A', 'a', '0', '%', etc. Note the use of the single quotes instead of double quotes. (Double quotes are used for string constants, not character constants.) A character constant maps to a specific int (integer) value, but assuming anything about that relationship is non-portable.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Explain different types of constant?

Integer constants Character constants Real/floating point constants String constants


What is character constant in c how does it differ from numeric type constants?

hiii


What does default character mean?

A default character is the kind d type for characters constants if no kind parameter is specified.


What is the size of character constant?

character constant is 4 bytes explanation is all constants is integer


What character is used to define a predefined numerical constant in scilab?

In Scilab, predefined numerical constants are typically defined using the % character. For example, %pi represents the mathematical constant π (pi), and %e represents Euler's number (e). These constants are built into Scilab and can be used directly in calculations without needing to define them explicitly.


What is the difference between string type and character type constants?

A character type constant is a character, a char, while a string type is an array of characters. The character type constant is one character and is delimited by single quotes. The string type constant is zero or more characters and is delimited by double quotes.


How many constants are there in the word python?

There are 4 constants.


What are constants and how are they are different from variables?

Variables change, constants do not.


Coding constants in c?

Coding constants in c means writing the constants in a certain way that the c language understands.


What do you mean by constant in c language?

Constant in C means the content whose value does not change at the time of execution of a program.There are several types of constants $ they are i>numeric->a.INTEGER b.REALii>character->a.SINGLE CHARACTER b.STRING.Hope this will help you.


Why constants have fixed value?

It's arbitrary. That's the way that constants are defined.


What is the use of Default statement in switch case?

C++ Provides a multiple branch selection called as switch. This selection statement succesively test against a list of integer or character constants. When a match is found the statements associate with constants are executed. When no match is found default statement is used.