Top "Assignment-operator" questions

The operator used when one object is assigned to another

What is the result of an assignment expression in C?

In the following code: int c; while((c=10)>0) What does c = 10 evaluate to? Is it 1 which indicates that the …

c expression assignment-operator
`x = y, z` comma assignment in JavaScript

Possible Duplicate: Javascript syntax: what comma means? I came across the code while reading this article (do a Ctrl+F …

javascript variable-assignment assignment-operator assign iterable-unpacking
assignment of class with const member

Consider the following code: struct s { const int id; s(int _id): id(_id) {} }; // ... vector<s> v; v.…

c++ vector constants assignment-operator placement-new
compiler generated constructors

This is just a quick question to understand correctly what happens when you create a class with a constructor like …

c++ copy-constructor assignment-operator default-constructor
Overloading assignment operator in C++

As I've understand, when overloading operator=, the return value should should be a non-const reference. A& A::operator=( const …

c++ operator-overloading assignment-operator
assignment operator within function parameter C++

I'm studying data structures (List, Stack, Queue), and this part of code is confusing me. ListNode( const Object& theElement = …

c++ parameters assignment-operator function-parameter
What is the R assignment operator := for?

By digging into R source code (file R-3.2.2/src/main/gram.y lines 2836 to 2852) I found that the R parser/…

r data.table assignment-operator colon-equals
What is the motivation for Scala assignment evaluating to Unit rather than the value assigned?

What is the motivation for Scala assignment evaluating to Unit rather than the value assigned? A common pattern in I/…

scala functional-programming io assignment-operator