answersLogoWhite

0


Best Answer

Yes:

int[] integerArray;

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it possible to declare an array of numbers in an integer form?
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.


Declare an integer array marks that can be used to store 3 elements?

int[] marks = new int[3]; int marks[3];


What is integer array in C programming?

An integer array consists of only integer numbers, for instance, if you have the array of size 5 with integer type date int_array[5] it means that your first element int_array[0] is an integer number like 1, or 15 and so on. The same is true for other elements too; int_array[1](int_array[2], int_array[3], int_array[4]) might be any integer element and so on.


What is the advantage to declare an array?

It is more convenient than other possible ways of achieving the same results.


What is integer type array?

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


What advantage are there in defining an array size in term of symbolic constant rather than a fixed integer value?

It may be possible to generalise results to other integer values.


How do you declare an int array?

we define the array isArray array[]={1,2,3,4,5} this is the integer ArrayArray array[]={"apple","banana","carrot","mango"} this is the String Array


How do you find sum of 100 numbers using fortran programme?

The following is for F95 and later (due to the use of intrinsic SUM ): My assumptions: -Your numbers are integers -Your numbers are stored in an array -The numbers you are describing are 0-100 program findSum !I assumed integer, replace this with your data type integer, dimension(100) :: numbers integer :: sumOfNumbers !We populate an array with our numbers !Replace this with your numbers do i=1,(size(numbers)+1) numbers = i end do !We find the sum of those numbers sumOfNumbers = sum(numbers) !We write out the sum to prompt write(*,*) 'Sum is: ', sumOfNumbers end program findSum


What is an user defined array?

The term user-defined really means programmer-defined when referring to programming. An user-defined array is therefore an array that the programmer has declared, rather than one that is provided by a third party or is built-in to the language. In essence, any array you yourself declare is an user-defined array. The following are examples of user-defined arrays: int x[10]; // static array of 10 integer elements. Allocated at compile time. int* y = new int [5]; // dynamic array of 5 integer elements. Allocated at runtime.


How do you declare an array in easytrieve?

your wish


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 are the similarities between rational numbers and fractions?

All integers belong to the set {..., -2, -1, 0, 1, 2, ...}. The absolute value of any integer results in a whole number {0, 1, 2, ...}. Adding and subtracting integers always results in an integer. Multiplying integers always results in an integer. Dividing integers can sometimes not result in an integer.