Top "Array-initialization" questions

All possible array initialization syntaxes

What are all the array initialization syntaxes that are possible with C#?

c# arrays syntax array-initialization
How can I declare a two dimensional string array?

string[][] Tablero = new string[3][3]; I need to have a 3x3 array arrangement to save information to. How do I declare …

c# arrays multidimensional-array jagged-arrays array-initialization
Array initializing in Scala

I'm new to Scala ,just started learning it today.I would like to know how to initialize an array in …

scala array-initialization
Initialize List<> with Arrays.asList

Why does this work: String[] array = {"a", "b", "c"}; List<String> list = Arrays.asList(array); but this does …

java arrays list collections array-initialization
Initializing variable length array

On initializing a Variable length array compiler gives an error message: [Error] variable-sized object may not be initialized Code snippet: …

c variable-length-array array-initialization
Array size at run time without dynamic allocation is allowed?

I've been using C++ for a few years, and today I saw some code, but how can this be perfectly …

c++ c array-initialization
Create N-element constexpr array in C++11

Hello i'm learning C++11, I'm wondering how to make a constexpr 0 to n array, for example: n = 5; int array[] = {0 ... n}; …

c++ c++11 constexpr array-initialization
When to use the tick(') for Verilog array initialization?

Array initialization can be done with or without the ': int a[8] = '{0,1,2,3,4,5,6,7}; // Packed int b[8] = {0,1,2,3,4,5,6,7}; // Unpacked Is there a …

arrays verilog system-verilog array-initialization
How to initialize an array of objects?

I just looked at this SO Post: However, the Columbia professor's notes does it the way below. See page 9. Foo …

java arrays array-initialization
How to create an array when the size is a variable not a constant?

I've got a method that receives a variable int. That variable constitutes an array size (please, don't offer me a …

c++ c constants array-initialization