1.

Which of the following operator is used to capture all the external variable by reference?(a) &(b) =(c) *(d) &&The question was asked during an interview.This intriguing question originated from Lambda Expressions topic in portion C++ Advanced of C++

Answer»

The correct option is (a) &

The best explanation: The LAMBDA expression uses & operator to capture the EXTERNAL variable by REFERENCE.



Discussion

No Comment Found

Related InterviewSolutions