Electronics and Communication Engineering - Microprocessors - Discussion

43. 

Which of the following DO statements is invalid in FORTRAN 77?

[A]. DO 161 = 1, 15
[B]. DO 16 1 = 1, 10, 1
[C]. DO 16 I = - 5, 5, 2
[D]. none of the above

Answer: Option D

Explanation:

All are valid.


Babitha said: (Sep 30, 2014)  
May I know the valid format please?

Deepa said: (Oct 6, 2014)  
May I know the valid format please?

Prajakta said: (Jul 7, 2015)  
All above are d valid formats.

Quiescent said: (May 25, 2017)  
I noticed option C has ambiguous number.

It it really valid or it's just a typo error?
I read it as:
DO 16 [x]

I'm not sure if it was a "Capital i (I)"
or it was a "small L (l)"
or was it just a typo error?

Kindly confirm. Thank you.

Parshi said: (Oct 24, 2018)  
Here, 16 is the label.

I is the variable name.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.