answersLogoWhite

0

No. You can declare a dynamic array without specifying a length, but in order to physically instantiate (either by using malloc or by using object-oriented construction) you must provide a length.

User Avatar

Wiki User

12y ago

What else can I help you with?

Continue Learning about Engineering

Which method of http session interface is used for specifying the length of inactive interval for a session?

setMaxInactiveInterval() method


Which take a string as input and find its length?

strlen is the C library function that accepts a pointer to a char array and returns an integer specifying the number of characters (in bytes) of the array. This function is usually not used any more, because it does not support multi-byte characters, such as UTF-8.


How do you calculate arc length between electrode and charge in arc furnace?

Arc Length depends on the secondary voltage of furnace transformer. Thumb rule is for 500V the Arc length would be 500mm(20"). The purpose of arc length is to give maximum power to the melt, without arc flare. -


How union of two arrays in java programming?

How to combine arrays in JavaGiven two arrays:int[] array1 = ...int[] array2 = ...It's possible to combine them into one like so:int[] arrayCombined = new int[array1.length + array2.length];// copy array1 to beginning of arrayCombinedSystem.arraycopy(array1, 0, arrayCombined, 0, array1.length);// copy array2 after array1System.arraycopy(array2, 0, arrayCombined, array1.length, array2.length);


What is instantiating in java?

To instantiate is to create a new "instance" of an "object" in object-oriented programming. For example, say you create an Object by defining a class called Square: (note: this is C++ but the principles are the same) class Square{ private: int length, width; public: getArea(){return length*width); }; The above class is an Object. When you create this object, that is called an "instance" of the object: int main() { Square x = new Square; // x is an "instance" of the Square "object" Square y = new Square; // y is a separate "instance" of the Square "object" return 0; }

Related Questions

How many liters are in 43Cm?

a cm is a measurement of length, liter is a measurement of volume. this cannot be done. it's like asking how many gallons are in a foot.


What is the area of 25m2?

The area of a shape is typically calculated by multiplying its length by its width. However, if you are given a measurement of 25m² without specifying the shape, it is not possible to determine the dimensions or shape of the area. In order to calculate the area, you would need additional information about the shape such as its length, width, radius, or other relevant measurements.


Which method of http session interface is used for specifying the length of inactive interval for a session?

setMaxInactiveInterval() method


What is the volume of a triangular prism of 6 8 9 10?

It is necessary to know which of three of the four given numbers are the sides of the triangular cross section and which one in the length. Without that information it is not possible to answer the question.It is necessary to know which of three of the four given numbers are the sides of the triangular cross section and which one in the length. Without that information it is not possible to answer the question.It is necessary to know which of three of the four given numbers are the sides of the triangular cross section and which one in the length. Without that information it is not possible to answer the question.It is necessary to know which of three of the four given numbers are the sides of the triangular cross section and which one in the length. Without that information it is not possible to answer the question.


What is d abstract noun of long?

The abstract noun of "long" is "length." This term refers to the measurement of something from end to end or the quality of being long, without specifying a physical object. It captures the concept or state related to the adjective "long."


What fraction is left when you use 13 of a metre?

You have chosen not to provide information on what length you started off with. Without that it is not possible to answer the question.


Is it possible to measure the length of a pair of two opposite rays?

No, it is not possible to measure the length of a pair of opposite rays because opposite rays extend infinitely in opposite directions without endpoints. Since they have no defined length or endpoints to measure between, they cannot be quantified like line segments. Thus, their "length" is considered infinite in both directions.


How do you find perimeter without knowing the length or the width?

If you do not know the length and width of ALL sides, then as far as I know it isn't possible to find the perimeter unless you measure each side and then find it.


How many gallons will an 6 foot by 10 foot pipe?

It is not possible to answer the question without knowing which of the two measures is the radius or diameter, and which is the length.


What is the length of the focal width?

Mathematically, any length is possible.


How many centimetres is a worm?

The size of a worm can vary significantly depending on the species. Common earthworms typically range from about 5 to 30 centimeters in length, while some species can grow even larger. For example, the giant Gippsland earthworm can reach lengths of over 3 meters. Therefore, without specifying a type, the length of a worm can vary widely.


What is the name given to the physical quantity which can be completely described by specifying both magnitude and direction?

The physical quantity that can be completely described by specifying both magnitude and direction is called a vector. Vectors are represented by arrows, where the length represents the magnitude and the direction represents the direction.