1.

What is lambda expression in C++?(a) A technique of C++ that allows us to write inline functions without a name(b) A technique of C++ that allows us to write overloaded functions(c) A technique of C++ that allows us to write functions that are called more than once(d) A technique of C++ that allows us to write functions without parametersI have been asked this question by my school principal while I was bunking the class.The query is from Lambda Expressions in section C++ Advanced of C++

Answer»

Right OPTION is (a) A technique of C++ that allows us to write inline functions without a name

Easy explanation - Lambda EXPRESSION is a technique available in C++ that HELPS the PROGRAMMER to write inline functions that will be used once in a program and so there is no need of providing names TOP them. Hence they are a type of inline functions without names.



Discussion

No Comment Found

Related InterviewSolutions