How to create a array of type double and have compile time initialiser placing 10 values in two arrays. Storing the product of two arrays in the third array.
master78
0
Newbie Poster
Recommended Answers
Jump to PostTo create array the Syntax is
DataType [] ArrayName = new DataType ;
Ex
double [] array1 = new double [10];
To initialize
DataType [] ArrayName = new DataType { Initialize data };
Here Size is optional
Exdouble [] array1 = …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.