Click here to Skip to main content
15,896,111 members

Comments by Thanasis I. (Top 4 by date)

Thanasis I. 19-Jan-13 20:03pm View    
Reason for my vote of 3 \n The title is misleading. You don't actualy GET powers of 2. There is a built in function for that (POWER). You just CHECK wether a certain value is, or is not, a power of 2. That's different.
Thanasis I. 17-Sep-12 17:03pm View    
Reason for my vote of 3
var is a keyword only. Not a type. Dynamic, from the other hand, is indeed a type.
Thanasis I. 18-Feb-12 14:33pm View    
Deleted
(a=b) is the assignment of a
Thanasis I. 18-Feb-12 14:33pm View    
Deleted
the (a = b) part is the assignment of a...

The question is... if (a=b) is calculated first, then (a+b) will give 20 instead of 30... it depends on compiler... but in any case the compiler will use at least one intermediate variable. In C++ you had the option to declare register local variables which was a nice way to have a fast temporary variable for swapping.