About 9,020,000 results
Open links in new tab
  1. What is the difference between "instantiated" and "initialized"?

    To initialize something is to set it to its initial value. To instantiate something is to create an instance of it. Often this is the more or less same thing. This: SqlConnection conn = new …

  2. Proper way to initialize C++ structs - Stack Overflow

    Jan 21, 2017 · C c = C(); // Zero initialize using default constructor C c{}; // Latest versions accept this syntax. C* c = new C(); // Zero initialize a dynamically allocated object. // Note the …

  3. 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. If you assign a …

  4. How to initialize array to 0 in C? - Stack Overflow

    May 10, 2016 · {0}; works fine, C99 [$6.7.8/21] If there are fewer initializers in a brace-enclosed list than there are elements or members of an aggregate, or fewer characters in a string literal …

  5. When to use the brace-enclosed initializer? - Stack Overflow

    Apr 2, 2012 · In C++11, we have that new syntax for initializing classes which gives us a big number of possibilities how to initialize variables. { // Example 1 int b(1); int a{1}; int c = 1; int d …

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

    You can use static block to initialize a map with some values. Example : public static Map<String,String> test = new HashMap<String, String> static { test.put("test","test"); …

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

    Nov 11, 2019 · NOTE: the C standard guarantees that if the programmer doesn't explicitly initialize a variable with static storage duration, such as static int a;, it is then initialized to zero …

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

    @Fratink See §6.7.8.21: "If there are fewer initializers in a brace-enclosed list than there are elements or members of an aggregate, or fewer characters in a string literal used to initialize …

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

    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 …

  10. MySQL 5.7 how to choose root password after mysqld --initialize

    Mar 10, 2018 · With --initialize but not --initialize-insecure, the server generates a random password, marks it as expired, and writes a message displaying the password: [Warning] A …