About 3,750,000 results
Open links in new tab
  1. Declaring vs Initializing a variable? - Stack Overflow

    Jul 30, 2015 · A variable declaration (e.g., var foo) causes that variable to be created as soon as the "lexical environment" is instantiated. For example, if that variable were defined within a …

  2. initialization - Initializing variables in C - Stack Overflow

    0 Initializing a variable, even if it is not strictly required, is ALWAYS a good practice. The few extra characters (like " = 0 ") typed during development may save hours of debugging time later, …

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

  4. Should I use curly braces, i.e. { } , or equal sign, i.e. = , to ...

    Initializing a variable as such does work in C++98. For all future readers, this method of initialization is called direct initialization.

  5. Variable initialization in C++ - Stack Overflow

    Here int i; is a automatic variable which must be initialize manually. auto variable doesn't initialize automatically in c and c++. If you want compiler to initialize it, then you need to use following …

  6. Java: define terms initialization, declaration and assignment

    11 Declaration is not to declare "value" to a variable; it's to declare the type of the variable. Assignment is simply the storing of a value to a variable. Initialization is the assignment of a …

  7. "Initializing" variables in python? - Stack Overflow

    Jun 16, 2015 · Even though initializing variables in python is not necessary, my professor still wants us to do it for practice. I wrote my program and it worked fine, but after I tried to initialize …

  8. c# - Meanings of declaring, instantiating, initializing and assigning ...

    Technically what are the meanings and differences of the terms declaring, instantiating, initializing and assigning an object in C#? I think I know the meaning of assigning but I have no formal …

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

    Feb 25, 2010 · Parts of a Variable There is the variable name and its value. Two parts. The variable's name is what you declare it to be. The value is what you assign to it. Variables are …

  10. C++ - initializing variables in header vs with constructor

    Feb 9, 2015 · C++ - initializing variables in header vs with constructor Asked 10 years, 11 months ago Modified 6 years, 6 months ago Viewed 105k times