answersLogoWhite

0

You can store one, however if you make a char array:

char[50];

You can make a string out of your array of characters.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

How many values can store a variable at a time?

The number of values a variable can store at a time depends on the data type of the variable. For example, a variable of type int (integer) in many programming languages can store a single integer value at a time. Similarly, a variable of type float (floating-point number) can store a single floating-point value. Other data types like arrays or lists can store multiple values at a time. The capacity of a variable to store values is determined by its data type and memory allocation.


Is class a pointer?

No. In computer programming, a class is a data type while a pointer is a variable that can store a memory address.


Why does a character in Java take twice as much space to store as a character in C?

Different languages use different size types for different reasons. In this case, the difference is between ASCII and Unicode. Java characters use 2-bytes to store a Unicode character so as to allow a wider variety of characters in strings, whereas C, at least by default, only uses 1 byte to store a character.


How you work character type data in array c plus plus?

It's not clear from the question what you mean by "work". However character data types (char and wchar_t) are intended to store character codes and they work exactly the same whether as a single variable or as an array of characters. If you want to use the array as a string, however, remember to include a null-terminator at the end of the string.


What data type can store a variable amount?

This all depends on the value you want to hold. A byte, short, int and long all store integers with increasing upper limits, respectively. Floats and doubles hold numbers with mantissas, decimal places. Booleans hold true or false values. Characters hold a character (alpha-numeric values). Strings (not primitive data types but treated as such) hold a list of characters.

Related Questions

What is a ponters in c-programming?

with the help of pointers we able to store the memory location of any variable. In c the pointer variable is use to store the memory location of any variable. The pointer variable is define as a simple variable but in pointer variable use a special "*" character at the left most side of name of pointer variable. If any variable name have * it means it is a pointer variable it hold the memory location of variable.


How many values can store a variable at a time?

The number of values a variable can store at a time depends on the data type of the variable. For example, a variable of type int (integer) in many programming languages can store a single integer value at a time. Similarly, a variable of type float (floating-point number) can store a single floating-point value. Other data types like arrays or lists can store multiple values at a time. The capacity of a variable to store values is determined by its data type and memory allocation.


A n BLANK data type can store a variable amount of text or combination o text and numbers where the total number of characters may exceed 255 a Unlimited b Variable c Memo d Character?

memo


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";


How many character can store a character variable at a time?

One. If you want more, use an array.


What is a variable name?

In programming it is a name, or tag, that you assign in your program in order to save information or store some data.


Is class a pointer?

No. In computer programming, a class is a data type while a pointer is a variable that can store a memory address.


What are characters that represent objects?

In programming, characters like letters, digits, and special symbols represent different objects or data types. For example, the character 'a' can represent a letter, '1' can represent a digit, and '%' can represent a special symbol. These characters are often used to store and manipulate data in a computer program.


Is variable representing the value being manipulayed or changed?

A variable is a placeholder that represents a value in computer programming. It can store different values depending on the context and can be manipulated or changed throughout the program execution.


How man character's can 8 bytes store?

One byte is made up of 8 bits, and each bit can store 1 character. Therefore, 8 Bytes can store 64 Characters.


What does variable allow you to do that you couldn't do before?

In computer programming, or in algebra? In computer programming, you can store a value that you recover later, and you can do generic calculations, which work for all sorts of numbers, not just for one specific number.


What does a variable allow you to do that you couldn't do before?

In computer programming, or in algebra? In computer programming, you can store a value that you recover later, and you can do generic calculations, which work for all sorts of numbers, not just for one specific number.