What is the result of the expression substr("R Language", 3, 5)
?
a) “Lang”
b) “Lan”
c) “Language”
d) “R L”
Answer:
b) “Lan”
Explanation:
The substr()
function extracts characters from the 3rd to the 5th position, which gives “Lan”.