Ask Question
18 February, 23:20

It is possible to write programs in a purely functional subset of an imperative language such as C, but certain limitations of the language quickly become apparent. What features would need to be added to your favorite imperative language to make it genuinely useful as a functional language

+2
Answers (1)
  1. 19 February, 00:19
    0
    See explaination

    Explanation:

    C Program lacks:

    a. C programming language does not support object oriented features like Polymorphism, inheritance, encapsulation etc.

    b. C is a procedure language so if we implement any algorithm we are required to use a set of function calls.

    c. C doesn't support namespace like C++. If there is no namespace we can't declare two variables with same name.

    d. It doesn't support destructor and constructors.

    e. It doesn't provide the data security.

    f. It doesn't provide reusability of source code.

    g. It can't provide solutions for real world problems.

    h. It provides low level of abstraction.
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “It is possible to write programs in a purely functional subset of an imperative language such as C, but certain limitations of the language ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers