English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

please tell me 1 example for lack of orthogonality in C language..?

2007-02-05 07:23:54 · 1 answers · asked by ccppjava 1 in Computers & Internet Programming & Design

1 answers

I would say that the lack of bounds checking in array access would qualify.
Bounds checking incurs a lot of overhead which is not needed in a properly written program.
C is designed with the idea that one has to trust the programmer. If the programmer thinks that a bounds check is needed he must explicitly program it everywhere he accesses the array.
This is one of the advantages of C++ objects where a single bounds check can be made in the array access methods as well as allowing for non-bounds-checked access.

2007-02-05 07:47:44 · answer #1 · answered by J C 5 · 0 0

fedest.com, questions and answers