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

6 answers

Why is there no atom inside an atom?

Elementry structures dont compose of themselves

2006-12-14 08:47:07 · answer #1 · answered by A Friend of Yours 2 · 0 0

Programs are made up of classes and functions. Functions are made for one task, to be given input and produce and output. They are not permitted to be sub programs. This is by design. Think about it, if functions are defined within other functions, then they will be local to that function making that function act like some other type, similar to a class therefore will lose it's identity of a function. Everything has it's purpose and restrictions.

2006-12-12 02:23:17 · answer #2 · answered by Arkane Steelblade 4 · 0 0

Because while u define anything within the function of language C that object or method or variable has the Scope up to that Function
(Method) only.
So it doesn't make a sense to make a method within the method.Hence the developers of C make this things prohibited.

2006-12-11 21:27:53 · answer #3 · answered by Nayi JItendra 1 · 0 0

think of yourself as writing a compiler for c language. Its going to be very difficult for you to support function defintion within another function. And also,it doesnt serve any additional purpose. So why do it?

2006-12-12 21:40:18 · answer #4 · answered by ram_phenom 2 · 0 0

The C language is the simplified version of C++, or we can say that it is a sub of C++. That's why some features in C++ cant be supported in C language like classes, abstraction, and encapsulation.

2006-12-11 21:15:49 · answer #5 · answered by m_Fariz 3 · 0 0

Does it matter _why_? If that's the case, then learn to work with it - asking why won't change anything!

2006-12-11 21:11:54 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers