answersLogoWhite

0


Best Answer

Arrays are basic structures wherein one or more elements exist "side by side" and are of the same "type". An "integer" array is an array whose elements are all of an integer type which has no fractional component. A "character" array is an array which contains nothing but character types. A "floating point" array contains elements that have both an integer and fractional portion.

Simply put, they are arrays of particular types.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
User Avatar

IF5I 48 VILAS MYAKAL

Lvl 1
1w ago
differntiant between character array and integer array with respect to size and initialize. in c language
More answers
User Avatar

Wiki User

14y ago

The base-type: character-array is array of characters, integer array is an array of integers. (Maybe you could have guessed that yourself.)

Note: only character arrays can be initialized with string-literals, eg:

char myname [] = "My name is";

This answer is:
User Avatar

User Avatar

Wiki User

14y ago

The difference between a character array and an integer array in C (and also in C++) is simply one of size (and, thus, range) of the elements. In C and C++, characters are the smallest integers, usually one byte long. Other than size; chars, short, int, and long are the same fundamental type - integral.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between integer array and character array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between a numericial array and an associative array?

A numericial array is an array with keys made up of only integers. An associative array is an array with keys made up of anything that is not an integer. In some languages, it is possible to mix integer keys and non-integer keys into a mixed array.


What is difference between array list and character list?

An array list is a collection of one or more (usually more) elements arranged in memory in a consecutive fashion, accessed as one indexable entity. The character list consists of only characters.


What is the difference between array and record?

The main difference b/w array & record is that the array is a collection of similar type like integer ,real ,real etc, which share a common name like 10 elements of type integer. But a record is a collection of different type of elements like some integer ,some real & some string etc. For ex-a student record has some int record like roll no,phone, some string like name address


Can you modify the bubble sort algorithm to search to sort an array of characters instead of array of integers?

The bubble sort algorithm can be applied to an array of characters. Every character can be translated to an integer equivalent via the ascii table


What is the difference between Strings and Arrays in c?

There is no difference. A string is just an array of type char. The only real difference is that we do not need to keep track of the length of a string because strings are null-terminated in C. If a string does not have a null-terminator, then it is just an ordinary array of character values.


What is the difference between numeric array and associative array?

Numeric array has numbers(+integers) that represent the values Associative array has strings that represent the values


What is the difference between array and string of array?

When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.


Difference between vector and array list?

Vectors are thread safe but array lists are not. Hence array lists are faster than Vectors.


What is the difference between Land Grid Array and Pin Grid Array?

One has pin in front, one has land


How can you insert an integer value to a character array in java?

It depends on what you mean by "convert an int to char". If you simply want to cast the value in the int, you can cast it using Java's typecast notation: int i = 97; // 97 is 'a' in ASCII char c = (char) i; // c is now 'a' If you mean transforming the integer 1 into the character '1', you can do it like this: if (i >= 0 && i <= 9) { char c = Character.forDigit(i, 10); .... }


What is the sie of an array whos upper bound is 100?

To calculate the size of array the type of array should be given. Ex: if it is of integer type that means int arr[100] and integer is of 4 bytes, then the size of array will be 400 bytes.


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.