answersLogoWhite

0

You cannot throw an array, only exceptions can be thrown. You access the thrown exception by catching it in a catch clause of a try...catch statement.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

What is the relationship between the value of the subscript and the value of the array element in c?

You can access the array-element via index (or subscript), but it is not possible the other way around.


How do you access and store the elements of array?

#include<stdio.h> #include<conio.h> int main(void) { int a[10],i;//array declaration clrscr(); printf("\n enter the elements of array"); for(i=0;i<10;i++) scanf("%d",&a[i]); printf("\n the elements you enter into the array"); for(i=0;i<10;i++) printf("%5d",a[i]); getch(); return 0; }


How do you calculate array elements value?

You don't need to calculate an array element's value. An array element is a variable and like any variable you can access its value directly. There is nothing to calculate: int a[5] {0, 2, 4, 6, 8}; int x = a[2]; // x=4 The only thing that really needs calculating is the index of the element you wish to access. If you know the index, then there's nothing to calculate.


How do you create string array in java?

String[] myStringArray = { "abc","def","xyz" }; You can access elements of this array by using the [index] operation. Ex: myStringArray[0] will contain value "abc" and myStringArray[1] will contain value "def" and so on...


What is an Access function for an array?

.


What is need to array?

Because using array you can easily access the data required


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.


How can you access an array without using the suffix operator?

An array's name implicitly converts to a pointer to the first element of the array at the slightest provocation. Thus to access the first element of the array, the array name suffices. To access any other element in the array without using the suffix operator, use offset pointer arithmetic. For example: int a[] = {2, 4, 6, 8, 10}; int b; b = *(a+3); assert (b == 8); Here, (a+3) points to the 4th element (offset 3). Dereferencing this address returns the value of that element, in this case 8.


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.


What are types of array operation?

Here are some: Create an array Destroy it Access an element of it


How do you read data from array?

Use the array suffix operator [] to access the individual elements of an array through a zero-based index.


Array is value type or reference type in CSharp?

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