Top "Variable-assignment" questions

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

Saving a select count(*) value to an integer (SQL Server)

I'm having some trouble with this statement, owing no doubt to my ignorance of what is returned from this select …

sql-server tsql aggregate variable-assignment
Expression must be a modifiable L-value

I have here char text[60]; Then I do in an if: if(number == 2) text = "awesome"; else text = "you fail"; and …

c char variable-assignment lvalue
Operator precedence with Javascript Ternary operator

I cant seem to wrap my head around the first part of this code ( += ) in combination with the ternary operator. …

javascript variable-assignment conditional-operator operator-precedence compound-assignment
How to assign a value to a TensorFlow variable?

I am trying to assign a new value to a tensorflow variable in python. import tensorflow as tf import numpy …

python tensorflow neural-network deep-learning variable-assignment
What is the difference between shallow copy, deepcopy and normal assignment operation?

import copy a = "deepak" b = 1, 2, 3, 4 c = [1, 2, 3, 4] d = {1: 10, 2: 20, 3: 30} a1 = copy.copy(a) b1 = copy.copy(b) c1 = copy.copy(c) d1 = …

python copy variable-assignment immutability deep-copy
Why does foo = filter(...) return a <filter object>, not a list?

Working in Python IDLE 3.5.0 shell. From my understanding of the builtin "filter" function it returns either a list, tuple, or …

python variables filter variable-assignment
Fixing the 'Use of unassigned local variable' with a null assignment. Why?

With a piece of code like this, the compiler complains on c.MyProperty: MyClass c; try { throw new Exception(); } catch (…

c# exception variable-assignment
Java: define terms initialization, declaration and assignment

I find the defs circular, the subjects are defined by their verbs but the verbs are undefined! So how do …

java initialization declaration variable-assignment
What's the difference between `=` and `<-` in R?

I'm using R 2.8.1 and it is possible to use both = and <- as variable assignment operators. What's the difference …

r assignment-operator variable-assignment
Assign multiple columns using := in data.table, by group

What is the best way to assign to multiple columns using data.table? For example: f <- function(x) {…

r dataframe data.table variable-assignment colon-equals