Electronics and Communication Engineering - Microprocessors - Discussion

44. 

Consider the following DO statement in Fortran 77

DO 12 A = 1.0, 5.5, 0.5

The number of DO loop executions in the above statement is

[A]. 1
[B]. 11
[C]. 10
[D]. 4

Answer: Option C

Explanation:

Do loop executations are for A = 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0, 5.5 or a total of 10 times.


Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.