answersLogoWhite

0

That depends on the language you use, but I guess you're using C. So, here goes:

int x[10] = {0}; //declare an array with ten indexes (0 thru to 9)

printf("%i\n", x[0]); //print x[0], which should be zero.

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Engineering

Differentiate single dimensional array to double dimensional array?

A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.


How do arrays differ from single memory position variables?

A single memory position variable can store only one value of its type. An array can store n number of values, where n is the size of the array.


Algorithm to implement Multiple queue in single dimensional array?

algorithm on multiple queues in a single dimensional array


How do you initialize an array variable in java program?

An array in java is a collection of items stored into a single unit. The array has some number of slots (elements), each slot in the array can hold an object or a primitive value. Arrays in java are objects that can be treated just like other objects in the languageArrays can contain any type of element value , but we can't store different types in a single array. We can have an array of integers or an array of strings or an array of arrays.To create an array in java ,use three steps1. Declare a variable to hold the array2. Create a new array object and assign it to the array variable3. Store things in that array


How is an array name interpreted?

An array name in programming is interpreted as a pointer to the first element of the array. When used in expressions, it typically evaluates to the address of the first element, allowing access to the entire array through pointer arithmetic. This means that the name of the array does not represent a single value, but rather a reference to a contiguous block of memory where the elements are stored.

Related Questions

Differentiate single dimensional array to double dimensional array?

A single dimensional array is an array of items. A two-dimensional array is an array of arrays of items.


How do arrays differ from single memory position variables?

A single memory position variable can store only one value of its type. An array can store n number of values, where n is the size of the array.


What is the median of two sorted arrays when combined into a single sorted array?

The median of two sorted arrays when combined into a single sorted array is the middle value when all the numbers are arranged in ascending order.


Algorithm to implement Multiple queue in single dimensional array?

algorithm on multiple queues in a single dimensional array


How do you initialize an array variable in java program?

An array in java is a collection of items stored into a single unit. The array has some number of slots (elements), each slot in the array can hold an object or a primitive value. Arrays in java are objects that can be treated just like other objects in the languageArrays can contain any type of element value , but we can't store different types in a single array. We can have an array of integers or an array of strings or an array of arrays.To create an array in java ,use three steps1. Declare a variable to hold the array2. Create a new array object and assign it to the array variable3. Store things in that array


What is the value of the kth smallest element in the given array?

The value of the kth smallest element in the array is the kth element when the array is sorted in ascending order.


How is an array name interpreted?

An array name in programming is interpreted as a pointer to the first element of the array. When used in expressions, it typically evaluates to the address of the first element, allowing access to the entire array through pointer arithmetic. This means that the name of the array does not represent a single value, but rather a reference to a contiguous block of memory where the elements are stored.


Array is value type or reference type in CSharp?

Array is a class name, hence ought to be a value type.


How do you print an array in php?

There are a few methods however the following is the method that will allow you to do the most with the information afterwards. foreach($array as $key => $value){ echo '[' . $key . '] ' . $value; #$key becomes the array key and value because what the current array item has inside. }


What is single dimentional?

A single dimension array is an array with one dimension. It is a collection in memory of one or more elements of the same type. int array[100]; declares an array of int's of size 100 elements. The elements are referenced as array[0], the first one, through array[99], the last one.


What is the median of two arrays when combined into a single array?

To find the median of two arrays when combined into a single array, first merge the arrays and then calculate the median by finding the middle value if the total number of elements is odd, or by averaging the two middle values if the total number of elements is even.


Can an array be a single column of values?

Yes.