Question: Suppose a new language design provides three basic data types: integer, real, and character. It also provides the ability to declare arrays ( collections where
Suppose a new language design provides three basic data types: integer, real, and character. It also provides the ability to declare arrays collections where each element has identical type and records collections where each element can be of a different type.
i Suppose elements of arrays or records may be any of the three basic data types or the elements may even be arrays or records themselves. Is the language orthogonal? Why Why not?
ii Suppose elements of arrays or records may be integer or real. However, arrays of character elements are called strings. Records may also have individual elements that are characters. Records may have elements that are arrays, but arrays may not have records as elements. Arrays may not have arrays as elements, but the concept of multidimensional arrays is supported. Is this language orthogonal? WhyWhy not?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
