Top "Variable-assignment" questions

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

Can you declare multiple variables at once in Go?

Is it possible to declare multiple variables at once using Golang? For example in Python you can type this: a = …

go variable-assignment
What happens when I assign long int to int in C?

In a recent homework assignment I've been told to use long variable to store a result, since it may be …

c casting integer variable-assignment long-integer
Replace a object in a list of objects

In C#, if I have a List<T>, and I have an object of type T, how can …

c# .net list variable-assignment generic-list
Python initialize multiple variables to the same initial value

I have gone through these questions, Python assigning multiple variables to same value? list behavior concerned with tuples, I want …

python variables variable-assignment
Assign same value to multiple variables at once?

How can I assign the same value for multiple variables in PHP at once ? I have something like: $var_a = …

php variables variable-assignment
Javascript. Assign array values to multiple variables?

var a,b,c; var arr = [1,2,3]; [a,b,c] = arr; this code works perfectly in Firefox resulting a=1, b=2 and …

javascript arrays variable-assignment
VB function with multiple output - assignment of results

I know there's no straightforward way for multiple assignment of function in VB, but there's my solution - is it …

vb.net function variable-assignment mass-assignment
Python 3 How do I 'declare' an empty `bytes` variable

How do I 'declare' an empty bytes variable in Python 3? I am trying to receive chunks of bytes, and later …

python variables python-3.x byte variable-assignment
Assign multiple new variables on LHS in a single line

I want to assign multiple variables in a single line in R. Is it possible to do something like this? …

r variables tuples variable-assignment assign
Multiple assignment and evaluation order in Python

What is the difference between the following Python expressions: # First: x,y = y,x+y # Second: x = y y = x+…

python variable-assignment assignment-operator multiple-assignment