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 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.

  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. 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.

  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. 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

  7. 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 …

  8. What distinguishes the declaration, the definition and the ...

    Apr 28, 2014 · After reading the question, I know the differences between declaration and definition. So does it mean definition equals declaration plus initialization?

  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 initialize a global object or variable and reuse it in every ...

    How to initialize a global object or variable and reuse it in every FastAPI endpoint? Asked 2 years, 8 months ago Modified 7 months ago Viewed 32k times