CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

Consider the intermediate code given below:
1. i = 1
2. j = 1
3. t1 = 5∗i
4. t2=t1+j
5. t3=4∗t2
6. t4=t3
7. a[t4]=−1
8. j = j + 1
9. if j < = 5 goto (3)
10. i = i + 1
11. if i < 5 goto (2)
The number of nodes and edges in the control-flow-graph constructed for the above code respectively, are

A
5 and 5
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
7 and 8
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
5 and 7
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
6 and 7
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
Join BYJU'S Learning Program
CrossIcon