About 50 results
Open links in new tab
  1. 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 to …

  2. How to directly initialize a HashMap (in a literal way)?

    How to directly initialize a HashMap (in a literal way)? Asked 14 years, 6 months ago Modified 7 months ago Viewed 2.1m times

  3. How to initialize a struct in accordance with C programming language ...

    } An important thing to remember: at the moment you initialize even one object/variable in the struct, all of its other variables will be initialized to default value. If you don't initialize the values in your struct …

  4. How can I initialize all members of an array to the same value?

    How would you use memset to initialize a int array to some value larger than 255? memset only works if the array is byte sized.

  5. initialization - Initializing variables in C - Stack Overflow

    These are just a couple of examples where it isn't strictly necessary to initialize a variable, since it's set later (but not accessed between declaration and initialization). In general though, it doesn't hurt to …

  6. java - Difference between initializing a class and instantiating an ...

    Feb 25, 2013 · I tried searching for this question through the search engine but could find a topic that explained the difference between initializing a class and instantiating an object. Could someone …

  7. c++ - What does 'initialization' exactly mean? - Stack Overflow

    Nov 11, 2019 · To sum up, if the implementation cannot constant initialize it, then it must first zero initialize and then initialize it before any dynamic initialization happends.

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

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

  9. Java: how to initialize String []? - Stack Overflow

    String[] errorSoon; // <--declared statement String[] errorSoon = new String[100]; // <--initialized statement You need to initialize the array so it can allocate the correct memory storage for the String …

  10. How to initialise memory with new operator in C++?

    Feb 5, 2010 · This will initialize all the elements in the allocated array. Here if you don't use the parenthesis, it will still initialize the integer values with zeros because new will call the constructor, …