GATEverse
← GATE CSE 1995

Q3

NATMarks unknown

Consider the following high level programming segment. Give the contents of the memory locations for variables W,X,YW, X, Y and ZZ after the execution of the program segment. The values of the variables AA and BB are 5CH5CH and 92H92H, respectively. Also indicate error conditions if any. var A, B, W, X, Y :unsigned byte; Z :unsigned integer, (each integer is represented by two bytes) begin X :=A+B Y :=abs(A-B); W :=A-B Z :=A*B end;

Sign in to save attempts.

Loading…