>>> s= 'The quick brown fox jumps over the lazy dog' >>> abc = ' '.join(sorted(list(set(s.lower())))).strip() >>> print(abc) What does the following code do?
'a b c d e f g h i j k l m n o p q r s t u v w x y z'
why is Integer.MAX_VALUE + 1 = -2^ 31 ?
Java integers are both signed and 32 bit in length however, using a bit to represent the sign of the number and beginning with 0 leaves -2^32 - 2 ^ 31 -1 so that adding one to your MAX_VALUE actually signs your value in that ~(x) + 1= -x. The negative value of any given integer is computed by flipping the bits and adding 1. Example: Dec 5 --> 0101 - One's Compliment --> 1010 Two's Compliment --> 1011
Why are such facilities such as basic input and output not included automatically with C?
The C philosophy follows the principal of economic use of resources. Often C is an embedded on a device, which doesn't use or make use of the I/0 package. For example. C could be used for and embedded system such as a DVD player.