Top "Variable-assignment" questions

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

How do I do multiple assignment in MATLAB?

Here's an example of what I'm looking for: >> foo = [88, 12]; >> [x, y] = foo; I'd expect something like …

arrays matlab variables variable-assignment
Freemarker assign list length to local variable

The following freemarker code causes an exception <#assign i= it.getList().size()> <#list it.getList() as elem&…

exception variable-assignment freemarker
Python Assign value to variable during condition in while Loop

A simple question about Python syntax. I want to assign a value from a function to a variable during the …

python while-loop variable-assignment
When initializing in C# constructors what's better: initializer lists or assignment?

Class A uses an initializer list to set the member to the paramter value, while Class B uses assignment within …

c# constructor initialization variable-assignment
Why can't a string be nil in Go?

The program available on The Go Playground reads package main import "fmt" func main() { var name string = nil fmt.Println(…

go variable-assignment
MYSQL Updating multiple columns using variables

I used this query to insert all my values into this database: INSERT INTO products ($fields) VALUES ($values) However, I …

php mysql variables multiple-columns variable-assignment
Can a JavaScript object property refer to another property of the same object?

I recently tried to create an object like this: var carousel = { $slider: $('#carousel1 .slider'), panes: carousel.$slider.children().length }; …

javascript object properties declaration variable-assignment
Assignment of objects in C++

To contextualize my question, I'm using a Matrix class with the following definitions: Matrix(unsigned int, unsigned int); // matrix of …

c++ object variable-assignment assign
is it possible to use variables in remote ssh command?

I'd like to execute several commands in sequence on a remote machine, and some of the later commands depend on …

shell ssh variable-assignment nohup
"Expression is not assignable" -- Problem assigning float as sum of two other floats in Xcode?

In a piano app, I'm assigning the coordinates of the black keys. Here is the line of code causing the …

objective-c ios floating-point variable-assignment cgrect