Top "Initialization" questions

Initialization deals with the task of initializing the contents of your data structure.

Does the default constructor initialize built-in types?

Does the default constructor (created by the compiler) initialize built-in-types?

c++ constructor initialization default-constructor built-in-types
How to import initial data to database with Hibernate?

When deploying applications, I often use Hibernate’s capacity to create database schema in order to simplify the deployment. This …

hibernate import initialization data-importer
How to initialize an array whose size is initially unknown?

Say I have this: int x; int x = (State Determined By Program); const char * pArray[(const int)x]; // ?? How would …

c++ arrays initialization lazy-initialization
Initializing Constant Static Array In Header File

I have just found out that the following is not valid. //Header File class test { const static char array[] = { '1…

c++ arrays initialization header-files
c++ Initializing a struct with an array as a member

Edited again because it originally wasn't clear that I'm trying to initialize the arrays at compile time, not at run …

c++ struct initialization portability
C# syntax to initialize custom class/objects through constructor params in array?

I have a class with minimum 4 variables and I have made a constructor for the class so that I can …

c# arrays constructor initialization razor-2
C++11: Correct std::array initialization?

If I initialize a std::array as follows, the compiler gives me a warning about missing braces std::array<…

c++ arrays c++11 initialization c++14
Default initialization of std::array?

With C++11 std::array, do I have the guarantee that the syntax std::array<T, N> x; will …

c++11 initialization default-constructor stdarray
Swift subclassing - how to override Init()

I have the following class, with an init method: class user { var name:String var address:String init(nm: String, …

initialization swift subclass superclass
Why aren't pointers initialized with NULL by default?

Can someone please explain why pointers aren't initialized to NULL? Example: void test(){ char *buf; if (!buf) // whatever } The program …

c++ memory pointers initialization