answersLogoWhite

0

An array is a collection of similar data types. An integer array is nothing but a collection of integer data types.

Ex: int a[100], int arr[100][100]

There are several types. 1D array, 2D array, Multi-Dimensional array.

But array is a contiguous allocation. And array size will always be positive. It can be given in the declaration stage or we can specify it dynamically by using malloc function.

Ex: int *a;

a=(int*)malloc(sizeof(int)*HOW_MANY_NUMBERS_YOU_WANT);

User Avatar

Wiki User

14y ago

Still curious? Ask our experts.

Chat with our AI personalities

BeauBeau
You're doing better than you think!
Chat with Beau
ViviVivi
Your ride-or-die bestie who's seen you through every high and low.
Chat with Vivi
JordanJordan
Looking for a career mentor? I've seen my fair share of shake-ups.
Chat with Jordan
More answers

An array can be thought of as a series of boxes, or containers.

An integer is a whole number (0, 5, 12, -3, etc).

Therefore, an integer type array is an array that stores items that are all of the data type "integer".

Depending on the language, you might create and populate an integer array with the following:

x = [0, 3, 9, -2, 1];

This would create an array 'x' filled with the numbers 0, 3, 9 -2 and 1.

User Avatar

Wiki User

15y ago
User Avatar

An array is a contiguous block of memory divided up into elements of equal size. The size of each element is determined by the array type. Arrays make it possible to create a collection of variables of the same type without having to name them individually. We access them by their index. Each element in the array is indexed such that an array of n elements is indexed from 0 to n-1. The name of the array implicitly converts to a reference to the first element in the array and the index provides a zero-based offset from that element. The compiler knows the element length and can easily calculate the memory address of any element simply by multiplying its zero-based index by the length. This makes it possible to perform random access in constant time.

An integer array is simply an array of integer values.

User Avatar

Wiki User

8y ago
User Avatar

Add your answer:

Earn +20 pts
Q: What is integer type array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

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.


Difference between integer array and character array?

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.


How do you write a C Program to fill up an Integer Array?

Reference:cprogramming-bd.com/c_page1.aspx# array programming


Maximum value of an array?

The maximum number of elements will depend on the type of array and the available memory. An array of char requires only 1 byte per element but an array of pointers requires 4 bytes per element (8 bytes on 64-bit systems). Arrays of objects or structures would likely require more memory per element.For all practical purposes, the maximum size is 2,147,483,647 elements, which is the maximum positive range for a 4-byte integer (0x7FFFFFFF). At 1 byte per element, that works out at 2GB.


How do you convert an integer to Boolean array list in java?

You cannot. An Integer is a numeric value whereas a boolean array list is a collection of a number of true or false values. So, you cannot convert either into the other