A language with string manipulation facilities uses the following operations:…
GATE · 1995 · CS · Question 2 subparts
A language with string manipulation facilities uses the following operations: head(s): first character of a string; tail(s): all but the first character of a string; concat(s1,s2): s1 s2. For the string s = acbc, what will be the output of concat(head(s), head(tail(tail(s))))?
- A.
ac
- B.
bc
- C.
ab
- D.
cc
Attempted by 47 students.
Sign up free to check your answer
Sign up freeLoading lesson…