Top "Variable-assignment" questions

A process of setting or re-setting the value stored in the storage location(s) denoted by a variable name.

Is it possible only to declare a variable without assigning any value in Python?

Is it possible to declare a variable in Python, like so?: var so that it initialized to None? It seems …

python variable-assignment variable-declaration
Initialization of all elements of an array to one default value in C++?

C++ Notes: Array Initialization has a nice list over initialization of arrays. I have a int array[100] = {-1}; expecting it …

c++ arrays initialization variable-assignment default-value
JavaScript OR (||) variable assignment explanation

Given this snippet of JavaScript... var a; var b = null; var c = undefined; var d = 4; var e = 'five'; var f = …

javascript variables variable-assignment or-operator
Command not found error in Bash variable assignment

I have this script called test.sh: #!/bin/bash STR = "Hello World" echo $STR when I run sh test.sh …

bash shell syntax sh variable-assignment
Assign output of a program to a variable using a MS batch file

I need to assign the output of a program to a variable using a MS batch file. So in GNU …

batch-file cmd variable-assignment windows-console
Why don't Java's +=, -=, *=, /= compound assignment operators require casting?

Until today, I thought that for example: i += j; Was just a shortcut for: i = i + j; But if we …

java casting operators variable-assignment assignment-operator
Set variable in jinja

I would like to know how can I set a variable with another variable in jinja. I will explain, I …

python templates variables variable-assignment jinja2
Local variable referenced before assignment in Python?

I am using the PyQt library to take a screenshot of a webpage, then reading through a CSV file of …

python python-2.7 python-3.x variable-assignment
How to assign from a function which returns more than one value?

Still trying to get into the R logic... what is the "best" way to unpack (on LHS) the results from …

r return-value variable-assignment assign multiple-results
How do I copy the contents of one ArrayList into another?

I have some data structures, and I would like to use one as a temporary, and another as not temporary. …

java reference variable-assignment