answersLogoWhite

0

Declare a structure with integer and character data members in it. Eg:

struct node{

int integer;

char character;

};


Now you can use this structure definition to store the values. Eg:


struct node temp;//declaring

temp.integer = 5;

temp.character = 'a';

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

Can you store unlimited value in any integer type of variables?

No. In Java, you can store a limited range of values in an integer. Specifically, integers are 32-bit signed values which can store values in the range [-231, 231-1]. If you need to store more values, consider using a long integer [-263, 263-1] or the BigInteger class (which can store arbitrary-precision values).


How would you write a program that read an integer for display each of digit of integer in English?

Use an enum if you are using a c style language. Or a map data structure. Assign each integer an English value and then match it to what the user inputs.


How do you store integer value in address 0x1234 using pointers?

int *ptr = (int *)0x1234; *ptr = value; Note: NEVER do this.


How do you explain how an integer can be represented using BCD?

Explain how an integer can be represented using BCD?


How do you convert integers in character using c?

In C, an integer and a character are the same thing, just represented differently. For example: int x = 65; printf("x = (int) %d, (char) %c\n", x, x) should print "x = (int) 65, (char) A" You can also use the atoi (ascii to integer) and itoa (integer to ascii) functions.


What are the data types would be used to store a whole number?

bit, int, numeric(8,0) depends on which database you are using


Why you are using binary integer representation?

I am not!


How do you print size of integer?

the size of an integer is determaind by using the function "sizeof(c)",here 'c' is any integer.


If a polynomial cannot be factored using integer coefficients then it is?

In that case, it may, or may not, be possible to factor it using non-integer coefficients.


How do you subtract an integer with another integer without using a number line or counters?

gavin


What is the alternative to using a database row in a system architecture?

An alternative to using a database row in a system architecture is to store data in a different format or structure, such as using a NoSQL database, key-value store, or a different data storage method altogether.


What is the greatest negative number which can be stored in a 8-bit register using 2'complement arithmetic?

6