A : C languange.
In fact, C was created to write the UNIX operating system.
Q7 : What is the disadvantage of having
too many features in a language?
A : Reduced readability. It also means that a
programmer may not be familiar with all the features that may cause an accidental
use of an unknown feature.
Q8 : How can user-defined operator
overloading harm the readability of a program?
A :Because the built in operator has the
precision and compiler knows all the precision between the operators, and it
works on that precision. User can also create its own operator but the compiler
does not come to know how to make precision of this operator.
Therefore we don't use user-defined operator.
Q9 : What is one example of a lack of
orthogonality in the design of C?
A : C has 2
structured data types, which are arrays and structs. A struct can be returned from a function while an array can’t.
Q10 : What language used orthogonality
as a primary design criterion?
A : ALGOL 68.
No comments:
Post a Comment