Discussion
Blanks being insignificant in early Fortran made scanning harder because
Answer: D
Correct answer: the scanner cannot use white space to delimit one lexeme from the next
If blanks are insignificant then DO 10 I = 1, 25 and DO10I=1,25 are the same statement, and worse, DO10I=1.25 is an assignment to a variable called DO10I. The scanner cannot tell which until it reaches the comma or the point, so it needs arbitrary lookahead - which is exactly what the design of a scanner is meant to avoid.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development