Question: 2 Choose (a) a programming language in which strings are primitive values (such as ML); (b) a language in which strings are character arrays (such

2 Choose (a) a programming language in which strings are primitive values (such as ML); (b) a language in which strings are character arrays (such as C or ADA); (c) a language in which strings are character lists (such as HASKELL or PROLOG); and (d) a language in which strings are objects (such as JAVA). Make a table showing the string operations provided by each language. In language (b), which string operations are in fact available for all arrays? In language (c), which string operations are in fact available for all lists? In each language, are any of the operations identified in Section 2.4.2 missing, and could the missing operations be defined in the language itself?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!