Professional Documents
Culture Documents
02 - Atiqa Ijaz Khan - 01 - 2014
02 - Atiqa Ijaz Khan - 01 - 2014
Assingment_01
.1:
2) a=7;b=9;c=89; c=a+b+c
4) s=9; t=t+s+T
5) g='e';f='u';g+f
6) h='tyu'; whos(h);
7) t='78';whos('t');
8) 4 * 2 – 9/3
9) sin=45; sin(3.4)
10) intmax('uint32')
.2:
‘who’ give information only about variable, while ‘whos’ gives detail information.
‘-ve mod’ deals with value that is larger multiple LESS than the dividend. In our case, -
12 is larger multiple of -6 as: [-6 * 2 = - 12], less than -10, so as per division rule: [-10 –
(-12) = 2]. ‘mod’ gets the sign value of (y), so it is –ve. In our case, it is: -2. While, ‘rem’ gets
the sign value of (x), so it is +ve.
REF. http://mathforum.org/library/drmath/view/52343.html
As ‘int8’ limits is upto 127, so in case of ‘int8(85698)’, it stops at its own maximum value.
Q. 3.