What is true after the following statements in a cc program


1

a. What is the output from the following section of FORTRAN code?

ISUM = 0
I = 1
20 IF (I .GT. 4) GO TO 30
ISUM = ISUM + I
I = I + 1
GO TO 20
30 WRITE (*,*) ISUM

b. Write an equivalent section of Java code.

2. What is true after the following statements in a C/C++ program have been executed?

int* intPointer;
intPointer = (int*) 500;
*intPointer = 10;

Solution Preview :

Prepared by a verified Expert
JAVA Programming: What is true after the following statements in a cc program
Reference No:- TGS01250549

Now Priced at $20 (50% Discount)

Recommended (97%)

Rated (4.9/5)