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 data type can store a variable amount of text or combination of text and numbers where the total number of characters may exceed 255?

The data type that can store a variable amount of text or a combination of text and numbers, with a total character count exceeding 255, is typically called a "Text" or "Blob" (Binary Large Object) in many programming languages and databases. In SQL databases, for instance, types like TEXT, VARCHAR, or CLOB (Character Large Object) are used for this purpose. These types allow for flexible storage of large amounts of character data beyond the fixed limits of standard string types.


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.


Write an 8086 assembly language program Which count the numbers of characters in the string s1 where s1 equals i know assembly programming?

Here’s a simple 8086 assembly language program to count the characters in the string "i know assembly programming": section .data s1 db 'i know assembly programming', 0 ; String with null terminator count db 0 ; To store the character count section .text global _start _start: mov si, s1 ; Load address of the string into SI xor cx, cx ; Clear CX for counting characters count_loop: cmp byte [si], 0 ; Check for null terminator je done ; If found, jump to done inc cx ; Increment character count inc si ; Move to the next character jmp count_loop ; Repeat the loop done: mov count, cl ; Store the count in 'count' ; Further code to exit or display the count can go here This program initializes a string and counts the characters until it encounters the null terminator, storing the final count in a variable.


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.


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.