From Wikipedia, the free encyclopedia
Computing desk
< October 26 << Sep | October | Nov >> October 28 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


October 27 Information

Return Type of Assignment Operator

As an signature or return type of an number is integer like int for 2.Is there an return type for assignment operator?This question made me curious while I was reading the article on Compiler Construction(P.48).In that page it points out that return type of assignment operator is int.But can a return type of assignment operator be int when it's just assigning an value? JUSTIN JOHNS ( talk) 10:47, 27 October 2015 (UTC) reply

In C-like languages, the "return value" of the assignment operator is the thing assigned, and the type is the type of the thing assigned to.
So when you say
a = b = 3;
it's as if you wrote
a = ( b = 3 );
But if you have
double a;
int b;
a = b = 3.3;
a will end up holding 3. — Steve Summit ( talk) 11:11, 27 October 2015 (UTC) reply
See Assignment (computer science)#Value of an assignment. I think that before C's enormous success, it was relatively uncommon for assignment to return a value (possibly because it's error-prone, as pointed out in the old joke "the world's last C bug"). But nowadays most popular languages (except Python) copy C's behavior. -- BenRG ( talk) 21:01, 27 October 2015 (UTC) reply

Yeah thanks for all your answers.Your answers made my doubt cleared. JUSTIN JOHNS ( talk) 06:35, 28 October 2015 (UTC) reply

How Excel deals with numbers and does calculations

Does Excel (as described in Numeric precision in Microsoft Excel) deal in a different way with numbers than other statistic packages, like R, or SciPy? I care about the more recent version of Excel (2010 and up), which have been improved in many aspects in comparison to the predecessors. -- 3dcaddy ( talk) 12:52, 27 October 2015 (UTC) reply

sequential readwrite speed in 90-100 MB/S range, why windows copypaste util and teracopy not utilize speed

they stuck at 20 Mahfuzur rahman shourov ( talk) 15:01, 27 October 2015 (UTC) reply

Are you asking why the throughput of copying a file to a disk is not as high as the max readwrite speed of the drive? 209.149.114.132 ( talk) 16:15, 27 October 2015 (UTC) reply
From Wikipedia, the free encyclopedia
Computing desk
< October 26 << Sep | October | Nov >> October 28 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


October 27 Information

Return Type of Assignment Operator

As an signature or return type of an number is integer like int for 2.Is there an return type for assignment operator?This question made me curious while I was reading the article on Compiler Construction(P.48).In that page it points out that return type of assignment operator is int.But can a return type of assignment operator be int when it's just assigning an value? JUSTIN JOHNS ( talk) 10:47, 27 October 2015 (UTC) reply

In C-like languages, the "return value" of the assignment operator is the thing assigned, and the type is the type of the thing assigned to.
So when you say
a = b = 3;
it's as if you wrote
a = ( b = 3 );
But if you have
double a;
int b;
a = b = 3.3;
a will end up holding 3. — Steve Summit ( talk) 11:11, 27 October 2015 (UTC) reply
See Assignment (computer science)#Value of an assignment. I think that before C's enormous success, it was relatively uncommon for assignment to return a value (possibly because it's error-prone, as pointed out in the old joke "the world's last C bug"). But nowadays most popular languages (except Python) copy C's behavior. -- BenRG ( talk) 21:01, 27 October 2015 (UTC) reply

Yeah thanks for all your answers.Your answers made my doubt cleared. JUSTIN JOHNS ( talk) 06:35, 28 October 2015 (UTC) reply

How Excel deals with numbers and does calculations

Does Excel (as described in Numeric precision in Microsoft Excel) deal in a different way with numbers than other statistic packages, like R, or SciPy? I care about the more recent version of Excel (2010 and up), which have been improved in many aspects in comparison to the predecessors. -- 3dcaddy ( talk) 12:52, 27 October 2015 (UTC) reply

sequential readwrite speed in 90-100 MB/S range, why windows copypaste util and teracopy not utilize speed

they stuck at 20 Mahfuzur rahman shourov ( talk) 15:01, 27 October 2015 (UTC) reply

Are you asking why the throughput of copying a file to a disk is not as high as the max readwrite speed of the drive? 209.149.114.132 ( talk) 16:15, 27 October 2015 (UTC) reply

Videos

Youtube | Vimeo | Bing

Websites

Google | Yahoo | Bing

Encyclopedia

Google | Yahoo | Bing

Facebook