Perl:: What is:
1. (52-80)*42
2. 42*(52-80)
Ans:
1. -28
2. -1176
Why?
Have fun explaining/justifying this please!
#!/usr/bin/perl
use strict;
print 42*(52-80) , "
";
print ((52-80)*42) , "
";
print (52-80)*42 , "
";
print "
";
my $i=(52-80)*42;
print $i, "
";
Output:
> -1176
> -1176-28
> -1176
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…