Gang Of Coders
Home
About Us
Contact Us
All Initialization Solutions on Gang of Coders
Total of 183 Initialization Solutions
Best way to initialize (empty) array in PHP
Php
Arrays
Initialization
Why can't we initialize members inside a structure?
C
Struct
Initialization
Member
Why use an initialization method instead of a constructor?
C++
Constructor
Initialization
Why doesn't Java have initializer lists like in C++?
Java
C++
Constructor
Initialization
Initialization List
Does initialization entail lvalue-to-rvalue conversion? Is `int x = x;` UB?
C++
Initialization
Undefined Behavior
Language Lawyer
C++11 member initializer list vs in-class initializer?
C++
C++11
Initialization
C++ - initializing variables in header vs with constructor
C++
Constructor
Initialization
Uses for anonymous namespaces in header files
C++
Namespaces
Initialization
Header
Necessity of static block in Java
Java
Static
Initialization
Declaring and initializing arrays in C
C
Arrays
Initialization
Java check to see if a variable has been initialized
Java
Variables
Initialization
Why attempt to print uninitialized variable does not always result in an error message
Java
Initialization
Final
DRY Ruby Initialization with Hash Argument
Ruby
Initialization
Dry
Idioms
Why does the Java compiler not understand this variable is always initialized?
Java
Initialization
Conditional
Final
Initialization of all elements of an array to one default value in C++?
C++
Arrays
Initialization
Variable Assignment
Default Value
__init__ as a constructor?
Python
Constructor
Initialization
Why can't simple initialize (with braces) 2D std::array?
C++
Stl
C++11
Initialization
Generate compiler warning if const char* array initialization comma is missing
C
Initialization
Easy way find uninitialized member variables
C++
Findbugs
Initialization
C++ - value of uninitialized vector<int>
C++
Vector
Scope
Initialization
ArrayList initialization equivalent to array initialization
Java
Arrays
Initialization
Arraylist
Initialize list with same bool value
Python
List
Initialization
Boolean
Move semantics and function order evaluation
C++
C++11
Initialization
Move Semantics
Unspecified Behavior
How to create std::array with initialization list without providing size directly
C++
Initialization
Stdarray
Static Initialization Blocks
Java
Static
Initialization
Static Block
Initialization Block
How to automatically create an initializer for a Swift class?
Ios
Swift
Struct
Model
Initialization
Default constructors and inheritance in Java
Java
Inheritance
Initialization
Default Constructor
Direct array initialization with a constant value
C#
Arrays
Initialization
Constants
When should I initialize a view controller using initWithNibName?
Iphone
Objective C
Uiviewcontroller
Initialization
C++ static member variable and its initialization
C++
Initialization
Static Variables
Should I refer to self.property in the init method with ARC?
Objective C
Ios5
Initialization
Automatic Ref-Counting
Reference Counting
Static NSArray of strings - how/where to initialize in a View Controller
Ios
Objective C
Nsmutablearray
Initialization
Nsarray
How can I initialise a static Map?
Java
Dictionary
Collections
Initialization
Idioms
Is there a difference between copy initialization and direct initialization?
C++
Initialization
How to call a method after bean initialization is complete?
Spring
Initialization
Startup
Applicationcontext
How to initialize all members of an array to the same value?
C
Arrays
Initialization
Array Initialize
Do the parentheses after the type name make a difference with new?
C++
Constructor
Initialization
New Operator
C++ Faq
Java: how to initialize String[]?
Java
String
Initialization
Initializing multiple variables to the same value in Java
Java
Variables
Initialization
Declaration
How to initialize array to 0 in C?
C
Arrays
Initialization
How to declare an ArrayList with values?
Java
Arraylist
Initialization
Declare
How can I make the memberwise initialiser public, by default, for structs in Swift?
Swift
Initialization
Error "initializer element is not constant" when trying to initialize variable with const
C
Initialization
Create a list with initial capacity in Python
Python
List
Dictionary
Initialization
How to set default values in Go structs
Go
Struct
Initialization
Default Value
Initializing C# auto-properties
C#
Initialization
Automatic Properties
What do the following phrases mean in C++: zero-, default- and value-initialization?
C++
Initialization
C++ Faq
Efficiency of Java "Double Brace Initialization"?
Java
Performance
Collections
Initialization
Initialization of an ArrayList in one line
Java
Collections
Arraylist
Initialization
How to initialize HashSet values by construction?
Java
Collections
Constructor
Initialization
Hashset
How can I use an array of function pointers?
C
Initialization
Function Pointers
How to initialise memory with new operator in C++?
C++
Initialization
Memory Management
New Operator
Does the default constructor initialize built-in types?
C++
Constructor
Initialization
Default Constructor
Built in-Types
How do C++ class members get initialized if I don't do it explicitly?
C++
Initialization
Member Initialization
Initialize a byte array to a certain value, other than the default null?
C#
.Net
Arrays
Initialization
In C#, should I use string.Empty or String.Empty or "" to intitialize a string?
C#
.Net
String
Initialization
What is the default initialization of an array in Java?
Java
Arrays
Initialization
Convenient C++ struct initialisation
C++
Struct
Initialization
What happens to a declared, uninitialized variable in C? Does it have a value?
C
Initialization
Declaration
Declare and Initialize String Array in VBA
Arrays
Vba
Initialization
Initializing a struct to 0
C
Struct
Initialization
What is the easiest way to initialize a std::vector with hardcoded elements?
C++
Vector
Stl
Initialization
How to initialize a List<T> to a given size (as opposed to capacity)?
C#
.Net
Generics
List
Initialization
How can I initialize a String array with length 0 in Java?
Java
Arrays
Initialization
C char array initialization
C
Arrays
Char
Initialization
Buffer
Why convenience keyword is even needed in Swift?
Swift
Initialization
What is the correct way to start a mongod service on linux / OS X?
Linux
Mongodb
Service
Initialization
How to emulate C array initialization "int arr[] = { e1, e2, e3, ... }" behaviour with std::array?
C++
Arrays
Templates
Initialization
C++11
Why does C++11 not support designated initializer lists as C99?
C++
C
C++11
Initialization
C99
C++ where to initialize static const
C++
Static
Initialization
Constants
C++ zero initialization - Why is `b` in this program uninitialized, but `a` is initialized?
C++
Initialization
Language Lawyer
How can I initialize a C# List in the same line I declare it. (IEnumerable string Collection Example)
C#
List
Collections
Initialization
Why can I initialize a List like an array in C#?
C#
.Net
List
Initialization
Java: int array initializes with nonzero elements
Java
Arrays
Jvm
Initialization
Java 7
In Scala, what exactly does 'val a: A = _' (underscore) mean?
Scala
Initialization
Set attributes from dictionary in python
Python
Dictionary
Properties
Attributes
Initialization
Default initialization of std::array?
C++11
Initialization
Default Constructor
Stdarray
Why aren't pointers initialized with NULL by default?
C++
Memory
Pointers
Initialization
How to initialize private static members in C++?
C++
Initialization
Static Members
How to initialize a private static const map in C++?
C++
Static
Map
Initialization
Constants
What is an initialization block?
Java
Constructor
Initialization
Initialization Block
What is the difference between convenience init vs init in swift, explicit examples better
Swift
Initialization
Convenience Methods
Cannot instantiate the type List<Product>
Java
List
Initialization
Ejb
How to initialize a struct in accordance with C programming language standards
C
Struct
Initialization
When does static class initialization happen?
Java
Static
Initialization
Why is list initialization (using curly braces) better than the alternatives?
C++
C++11
Syntax
Initialization
List Initialization
Options for initializing a string array
C#
Arrays
Initialization
How do I make a custom initializer for a UIViewController subclass in Swift?
Swift
Uiviewcontroller
Initialization
Array[n] vs Array[10] - Initializing array with variable vs numeric literal
C++
Arrays
Initialization
Size
Why are local variables not initialized in Java?
Java
Variables
Initialization
How to initialize an array in one step using Ruby?
Ruby
Arrays
Initialization
Are delphi variables initialized with a value by default?
Delphi
Variables
Initialization
initializing a boolean array in java
Java
Arrays
Initialization
Declaring and initializing variables within Java switches
Java
Scope
Initialization
Switch Statement
Declaration
Confusion about array initialization in C
C
Arrays
Initialization
Language Lawyer
Initialize/reset struct to zero/null
C
Struct
Initialization
C++: Where to initialize variables in constructor
C++
Constructor
Initialization
JavaScript check if variable exists (is defined/initialized)
Javascript
Function
Variables
Initialization
Undefined
Python - Initializing Multiple Lists/Line
Python
List
Initialization
Proper way to initialize C++ structs
C++
Struct
Initialization
Valgrind
Calloc
Uninitialized Object vs Object Initialized to NULL
Java
Null
Initialization
Default value of BOOL
Objective C
Initialization
Boolean
Initialize static variables in C++ class?
C++
Static
Initialization
When are static variables initialized?
Java
Static
Initialization
How to get stage from controller during initialization?
Javafx
Initialization
Javafx 2
Javafx 8
Stage
How to initialize all members of an array to the same value in Swift?
Arrays
Initialization
Swift
Custom init for UIViewController in Swift with interface setup in storyboard
Ios
Swift
Uiviewcontroller
Initialization
Initializing entire 2D array with one value
C
Arrays
Initialization
Can PHP instantiate an object from the name of the class as a string?
Php
Class
Object
Initialization
Adding code to __init__.py
Python
Initialization
Package
(Why) is using an uninitialized variable undefined behavior?
C
Undefined Behavior
Initialization
How to initialize an array in Java?
Java
Arrays
Initialization
Default values in a C Struct
C
Initialization
In this specific case, is there a difference between using a member initializer list and assigning values in a constructor?
C++
Initialization
Initialization List
C++11 allows in-class initialization of non-static and non-const members. What changed?
C++
Class
C++11
Initialization
Class Members
Swift: Custom ViewController initializers
Ios
Objective C
Swift
Uiviewcontroller
Initialization
Is it possible to initialize a C pointer to NULL?
C
Pointers
Initialization
Why does the first element outside of a defined array default to zero?
C++
Arrays
Initialization
Undefined Behavior
Zero Initialization
Why can't Swift initializers call convenience initializers on their superclass?
Class
Initialization
Swift
Now that we have std::array what uses are left for C-style arrays?
C++
Arrays
C++11
Initialization
memset() or value initialization to zero out a struct?
C++
C
Visual C++
Struct
Initialization
JUnit: using constructor instead of @Before
Constructor
Junit
Initialization
Initializing a dictionary in python with a key value and no corresponding values
Python
Dictionary
Initialization
Key
Default values and initialization in Java
Java
Initialization
Global Variables
Default Value
Local Variables
What are the signs of crosses initialization?
C++
Initialization
How is "int* ptr = int()" value initialization not illegal?
C++
Visual C++
Pointers
Initialization
Built in-Types
How to initialize KeyValuePair object the proper way?
C#
Initialization
Has the new C++11 member initialization feature at declaration made initialization lists obsolete?
C++
C++11
Constructor
Initialization
Declaration
Compiler error: "initializer element is not a compile-time constant"
Objective C
Cocoa
Initialization
Compiler Errors
Global Variables
Variable might not have been initialized error
Java
Variables
Initialization
How to initialize an array of objects in Java
Java
Arrays
Object
Initialization
Declaring a variable with two types: "int char"
C++
Type Conversion
Initialization
Uniform Initialization
Narrowing
initialize a const array in a class initializer in C++
C++
Initialization
C++03
Array Initialize
C++11: Correct std::array initialization?
C++
Arrays
C++11
Initialization
C++14
Are fields initialized before constructor code is run in Java?
Java
Constructor
Initialization
Objective-C: init vs initialize
Objective C
Initialization
Init
Initializer
When is the static block of a class executed?
Java
Jvm
Initialization
Classloader
Static Block
non-trivial designated initializers not supported
C++
Initialization
How do I initialize an empty array in C#?
C#
Arrays
Initialization
hibernate: LazyInitializationException: could not initialize proxy
Hibernate
Initialization
Lazy Evaluation
Are ints always initialized to 0?
Objective C
Initialization
Int
Instance Variables
Multiple initialization in C# 'for' loop
C#
Initialization
For Loop
How to initialize var?
C#
Initialization
Can I have an init func in a protocol?
Swift
Initialization
Protocols
Swift Protocols
Why can't we access static content via uninitialized local variable?
Java
Static
Initialization
Local Variables
Jls
What's the difference between dict() and {}?
Python
Initialization
Instantiation
Why can a string be assigned to a char* pointer, but not to a char[] array?
C
String
Pointers
Initialization
Reusability
Initializing container of unique_ptrs from initializer list fails with GCC 4.7
C++
Compiler Errors
Initialization
C++11
Static constructor equivalent in Objective-C?
Objective C
Static
Initialization
Initializer
Why must const members be initialized in the constructor initializer rather than in its body?
C++
Constructor
Initialization
Constants
How to import initial data to database with Hibernate?
Hibernate
Import
Initialization
Data Importer
What are the differences between C-like, constructor, and uniform initialization?
C++
C++11
Initialization
C++03
Variable Initialization
Initializing an array of zeroes
C++
Arrays
Initialization
Language Lawyer
Why does .class not invoke the static block in a Class?
Java
Class
Static
Initialization
Finding C++ static initialization order problems
C++
Initialization
Static Order-Fiasco
What is Double Brace initialization in Java?
Java
Initialization
Double Brace-Initialize
When are static C++ class members initialized?
C++
Static
Initialization
Why use required Initializers in Swift classes?
Swift
Initialization
How to perform struct inline initialization in C#?
C#
Struct
Initialization
Why doesn't Kotlin allow to use lateinit with primitive types?
Initialization
Kotlin
Primitive
using __init__.py
Python
Module
Initialization
Packages
What is the shortest way to initialize List of strings in java?
Java
Arrays
String
List
Initialization
Object creation on the stack/heap?
C++
Initialization
Heap Memory
Stack Memory
Getting a bunch of crosses initialization error
C++
G++
Initialization
Switch Statement
Declare and initialize a Dictionary in Typescript
Dictionary
Initialization
Typescript
Is this self initialization valid?
C++
Initialization
Initialization Order
Declaring array of int
C++
Arrays
Pointers
Initialization
Faster way to initialize arrays via empty matrix multiplication? (Matlab)
Performance
Matlab
Initialization
Matrix Multiplication
How to define initializers in a protocol extension?
Swift
Initialization
Swift2
Protocols
Swift Extensions
Overriding Enum init?(rawValue: String) to not be optional
Ios
Swift
Enums
Initialization
Multiple constructors: the Pythonic way?
Python
Constructor
Initialization
Initializer
Idioms
How is this C# dictionary initialization correct?
C#
Dictionary
Initialization
How to directly initialize a HashMap (in a literal way)?
Java
Dictionary
Collections
Initialization
I wrote a program that allow two classes to "fight". For whatever reason C# always wins. What's wrong with VB.NET?
C#
vb.net
Compiler Construction
Initialization
Difference between declaring variables before or in loop?
Java
Performance
Loops
Variables
Initialization
Loading ViewController from xib file
Ios
Swift
Initialization
Xib
Viewcontroller
Is it safe to use the "this" pointer in an initialization list?
C++
Initialization
This
Initialize nested struct definition
Struct
Go
Initialization
Are function static variables thread-safe in GCC?
C++
Gcc
Static
Initialization
Thread Safety
Can one initialize a Java string with a single repeated character to a specific length
Java
String
Initialization
Initializing strings as null vs empty string
C++
String
Initialization
"error: assignment to expression with array type error" when I assign a struct field (C)
C
Arrays
String
Struct
Initialization
Initialize an Associative Array with Key Names but Empty Values
Php
Arrays
Initialization
Associative