answersLogoWhite

0

What is the size of character constant?

Updated: 9/21/2023
User Avatar

Wiki User

12y ago

Best Answer

character constant is 4 bytes explanation is all constants is integer

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the size of character constant?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is 2564-61 a character's constant in C?

Not really. Character constant examples: 'S', 65, '\t'


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.


What is difference between multi character constant and string literals?

In C, you can assign integers multiple characters such that they fit in their size. For e.g.: int - 4 bytes char - 1 byte So an assignment like this is valid: int a = 'ABCD'; The first byte in a will be assigned the value of 'A', the second - 'B' and so on. A string literal is a character array constant. It is enclosed in double quotes and assignment can only be made to a char pointer. There is no limit on the size of the literal and it is terminated with a null character. e.g.: char str[] = "This is a trial";


A number or a string of c character is called as?

Constant.


What are character constants?

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.


What is an advantage of a solid?

Constant size & shape.


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

hiii


What is the size of NaCl?

The lattice constant is 5,65 angstroms.


What is Anisometry?

Shape does not remain constant as size increases.


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.


Specifies the height of the character?

size


Why is the ozone hole not constant over time?

The ozone hole is not constant. Various man made chemicals vary the size of it.