1 1 vote 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 one-mark + – Arjun 5.3k views answer comment Share Follow Print See all 7 Comments 7 7 Comments reply Kapil commented Oct 23, 2016 i moved by Kapil Jan 19, 2017 reply Follow flag 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 0 replyShare vijaycs commented Oct 23, 2016 reply Follow flag So, why option B, why not D ? 1 1 replyShare Kapil commented Oct 23, 2016 reply Follow flag @vijaycs, There is difference between purely functional and funtional . Like C++ is object oriented and not purely object oriented . 0 0 replyShare vijaycs commented Oct 23, 2016 reply Follow flag 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 1 replyShare Kapil commented Oct 23, 2016 reply Follow flag 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 0 replyShare vijaycs commented Oct 23, 2016 reply Follow flag @Arjun sir, please check above wiki reference, sir . 0 0 replyShare shivam001 commented Jan 2, 2020 reply Follow flag C is procedured , structured language . not functional , declarative 0 0 replyShare Please log in or register to add a comment.
1 1 vote 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 4 4 Comments reply Sarvottam Patel commented Jan 12, 2017 reply Follow flag C is not purely functional language as here we dont write program base on functional logic 3 3 replyShare Kushagra Gusain commented Jun 18, 2017 reply Follow flag @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 0 replyShare Hemant Parihar commented Jul 1, 2017 reply Follow flag 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 0 replyShare Arjun commented Jul 1, 2017 reply Follow flag 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 4 replyShare Please log in or register to add a comment.
0 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 0 reply Please log in or register to add a comment.
0 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 0 reply Please log in or register to add a comment.
0 0 votes I know many people are confused saying is C a functional Programming language or not.But listen let's start with simple yet famous question, "Is C Declarative or Imperative/Procedural .?"( Declarative means u simply declare "what to do?", but u don't explain how to do it, While Imperative/ Procedural means u explain "how to do it.?" )So yeah "C is a Imperative/Procedural Language".Now check the options -> S1, S2 and S3 onlyS2 and S4 onlyS2, S3 and S4 onlyS1, S3 and S4 onlyOnly option 'D' Don't have 'S2' in it. So u can even ignore other checks, saving your time.And Correct Ans. comes to be 'D'. scpatil670 answered Aug 19 scpatil670 comment Share Follow 0 reply Please log in or register to add a comment.