Programming
February 13, 2024ISRO-2018
February 13, 2024Programming
Question 9 |
(a) Draw a precedence graph for the following sequential code. The statements are numbered from S1 to S6
S1 read n S2 i:=1 S3 if i>n goto next S4 a(i):=i+1 S5 i:=i+1 S6 next : Write a(i)
(b) Can this graph be converted to a concurrent program using parbegin-parend construct only?
Theory Explanation. |
Correct Answer: A