About 52 results
Open links in new tab
  1. What distinguishes the declaration, the definition and the ...

    Apr 28, 2014 · Initialization includes things like the zero initialization of variables with static lifetime, and default constructors, as well as what you show. (And to add to the confusion: in C, initialization can …

  2. What is the difference between initialization and assignment?

    30 What is the difference between initialization and assignment? I was confused by the following statement: C++ provides another way of initializing member variables that allows us to initialize …

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

    Nov 11, 2019 · All definitions are declarations in C and C++, and a definition of a variable may optionally include an initialiser. If no initialiser is provided for a global/static, then the default is zero-initialisation …

  4. struct - C++ Structure Initialization - Stack Overflow

    The designated aggregate initialization, where the initialization list contains that labels of each member of the structure (see documentation) available from C++20 onward.

  5. What is the difference between default-initialization and copy ...

    Dec 16, 2023 · But temp2 initialization is handled differently. In C++03 the () initializer triggers the new kind of initialization - so called value-initialization. Value-initialization ignores the compiler-provided …

  6. c# - Format of the initialization string does not conform to ...

    Nov 23, 2011 · Fixed it for me as well. I had a valid connectionstring but setting it manually threw the "Format of the initialization string does not conform to specification starting at index 0".

  7. java - What is an initialization block? - Stack Overflow

    Oct 21, 2010 · We can put code in a constructor or a method or an initialization block. What is the use of initialization block? Is it necessary that every java program must have it?

  8. c++ - Vector of structs initialization - Stack Overflow

    I want know how I can add values to my vector of structs using the push_back method struct subject { string name; int marks; int credits; }; vector<subject> sub; So now how can I add

  9. Initialization of all elements of an array to one default value in C++?

    Jul 1, 2009 · Without the parentheses, it would look like we are passing a bunch of arguments to our array initialization, but really, we are evaluating the index, casting it to void, ignoring that void result, …

  10. Initialization of an ArrayList in one line - Stack Overflow

    Jun 17, 2009 · Initialization of an ArrayList in one line Asked 16 years, 10 months ago Modified 7 months ago Viewed 4.1m times