PDA

View Full Version : COMPUTER QUIZ



ranjitjat
June 19th, 2003, 08:04 PM
PROVE IT
N=N+1
Is this a true statement or not
IF YES PROVE IT- IF NOT WHY ??

shekhar_nehra
June 20th, 2003, 08:30 PM
N=N+1;
This is a valid statement in computer programming provided N is an arithmetic type variable.

The expression is evaluated from right to left.
i.e first 1 is added to N and then this new value is assigned back to the variable N and the control moves to the next statement.

ranjitjat
June 20th, 2003, 11:40 PM
Shekhar Baeta- well done 100 %
nicely proved.

shekhar_nehra
June 21st, 2003, 12:05 AM
Dharmpal Singh Dudee (Jun 20, 2003 02:10 p.m.):
Shekhar Baeta- well done 100 %
nicely proved.

Thanks !