About 13,100,000 results
Open links in new tab
  1. Proper way to initialize C++ structs - Stack Overflow

    Jan 21, 2017 · The new syntax with () should value-initialize the object, assuming it is POD. Is it possible that some subpart of your struct isn't actually POD and that's preventing the expected …

  2. What is the difference between "instantiated" and "initialized"?

    Feb 25, 2010 · To initialize means assigning an initial state to the object before it is used. This initialization can be part of the instantiation process, in that case values are explicitly assigned …

  3. How to initialize a struct in C# - Stack Overflow

    Oct 15, 2010 · How to initialize a struct in C# [duplicate] Asked 14 years, 8 months ago Modified 14 years, 8 months ago Viewed 49k times

  4. c# - Initialize () vs Constructor () method, proper usage on object ...

    Oct 13, 2014 · We all know the difference between a Constructor and a User-Defined Initialize() method fundamentally. My question is focused on best design practice for object creation. We …

  5. How to initialize a struct in accordance with C programming …

    Is this the way to declare and initialize a local variable of MY_TYPE in accordance with C programming language standards (C89, C90, C99, C11, etc.)? Or is there anything better or at …

  6. java - How to declare an ArrayList with values? - Stack Overflow

    ArrayList or List declaration in Java has questioned and answered how to declare an empty ArrayList but how do I declare an ArrayList with values? I've tried the following but it returns a …

  7. How to declare an array of objects in C# - Stack Overflow

    It shouldn't need a parameterless constructor in order to declare a simple array. It doesn't initialize it with actual instances, but rather null.

  8. Quick way to create a list of values in C#? - Stack Overflow

    183 This question already has answers here: How to initialize a list of strings (List<string>) with many string values (14 answers)

  9. Java: define terms initialization, declaration and assignment

    assignment: throwing away the old value of a variable and replacing it with a new one initialization: it's a special kind of assignment: the first. Before initialization objects have null …

  10. Declaring vs Initializing a variable? - Stack Overflow

    Jul 30, 2015 · The only difference is that the var statement will initialize any declared variables without a value to undefined. In both examples, you are declaring a variable.