1 votes 1 votes Which of the following statements is true regarding C language? S1: C is a functional language S2: C is a declarative language S3: C is a procedural language S4: C is a structured language S1, S2 and S3 only S2 and S4 only S2, S3 and S4 only S1, S3 and S4 only Programming in C go-programming-1 programming programming-in-c + – Arjun asked Oct 18, 2016 Arjun 3.3k views answer comment Share Follow See all 7 Comments See all 7 7 Comments reply Kapil commented Oct 23, 2016 i moved by Kapil Jan 19, 2017 reply Follow Share C is purely functional and imperative language . http://stackoverflow.com/questions/602444/what-is-functional-declarative-and-imperative-programming Hence, option B is correct. 0 votes 0 votes vijaycs commented Oct 23, 2016 reply Follow Share So, why option B, why not D ? 1 votes 1 votes Kapil commented Oct 23, 2016 reply Follow Share @vijaycs, There is difference between purely functional and funtional . Like C++ is object oriented and not purely object oriented . 0 votes 0 votes vijaycs commented Oct 23, 2016 reply Follow Share yes , diff between purely object oriented and object oriented is okay, But, please check this, https://en.wikipedia.org/wiki/List_of_programming_languages_by_type#Functional_languages Many so-called functional languages are "impure", containing imperative features 1 votes 1 votes Kapil commented Oct 23, 2016 reply Follow Share I guess they have given so, because C can be made functional explicitly but this feature is not by default in C. Like, LISP has implicit functional properties. 0 votes 0 votes vijaycs commented Oct 23, 2016 reply Follow Share @Arjun sir, please check above wiki reference, sir . 0 votes 0 votes shivam001 commented Jan 2, 2020 reply Follow Share C is procedured , structured language . not functional , declarative 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes Answer should be D. http://stackoverflow.com/questions/21978679/is-c-an-imperative-or-declarative-programming-language http://conal.net/blog/posts/the-c-language-is-purely-functional Arjun answered Oct 23, 2016 Arjun comment Share Follow See all 4 Comments See all 4 4 Comments reply Sarvottam Patel commented Jan 12, 2017 reply Follow Share C is not purely functional language as here we dont write program base on functional logic 3 votes 3 votes Kushagra Gusain commented Jun 18, 2017 reply Follow Share @Arjun sir wiki page https://en.wikipedia.org/wiki/Functional_programming says that it is a declarative programming paradigm. So if C is functional then it should be declarative according to this. I am confused. 0 votes 0 votes Hemant Parihar commented Jul 1, 2017 reply Follow Share Here also C is not in the list of functional programming. More ever the related paradigm to functional programming is given as declarative. https://en.wikipedia.org/wiki/Comparison_of_programming_paradigms#Main_paradigm_approaches 0 votes 0 votes Arjun commented Jul 1, 2017 reply Follow Share Well, it is ambiguous. As per current convention, no one will call C as a functional language. This will never be asked in GATE at least. Is a bad question for GATE. 4 votes 4 votes Please log in or register to add a comment.
0 votes 0 votes i think the answer should be (d) s1,s3,s4. because c is completly functional and procedure language . And their is also a structure facility . SHIVAM GARG answered Jul 25, 2018 SHIVAM GARG comment Share Follow See all 0 reply Please log in or register to add a comment.
0 votes 0 votes Ans: D for more information visit the link given below https://stackoverflow.com/questions/21978679/is-c-an-imperative-or-declarative-programming-language turendar answered Aug 18, 2018 turendar comment Share Follow See all 0 reply Please log in or register to add a comment.