answersLogoWhite

0

What does a char store?

Updated: 11/4/2022
User Avatar

Wiki User

15y ago

Best Answer

In Java

A char in Java is a 16-bit integer, which maps to a subset of Unicode.

In C A char in C is an 8-bit integer, which maps to standard ASCII.

Note that in both Java and in C you can use a char value like a normal integer type: char c = 48;

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does a char store?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between char and varchar2 in dbms?

no diff between varchar and varchar2 char store only chacter type but varchar2 store variable chacters. also varchar2 shirinks the space if not fully filled but char cant.


How much are bearded dragons at Char's reptile store?

as much as he says so


In C programming a character variable can at a time store how many characters?

You can store one, however if you make a char array: char[50]; You can make a string out of your array of characters.


Which data type will you use to store names of 100 students?

char data type


The statement char ch equals 'z' would store in ch?

only Z


How do you store a character in a variable?

In Java a primitive data type called 'Char' is used to store a single character of text.Char myChar = "a";


Is char a identical to char a?

'char a' and 'char a' are identical.


What data type would you use to store 100 M?

char x[]="100 M";


What is the external conflict in the story Stop the Sun by Gary Paulson?

Terry was embarrassed that his dad had a fit in the store (Char vs Char). Terry was embarrassed but felt gulty for feeling that way(Char vs Self). Any one of those works and they both are internal and external conflicts.


How does one declare a string of 49 letters?

char str[50]; Note that you must include the null-terminator, thus you need 50 characters to store a string of 49 letters. Alternatively, you can use dynamic allocation: char* p; p = malloc (50 * sizeof(char)); /* ... */ free (p);


Are the three declaration char a char a and char c same?

Yes.


What is the abbreviation of Charleston?

char or you can say char harbor as in the harbor of char