Question: Which is the correct syntax of capturing a variable ‘X’ by reference and other variable ‘Y’ by value in lambda expression?

Options

A : [&X, Y]

B : [X, &y]

C : [X, Y]

D : [&x, &Y]

Click to view Correct Answer

Previous || Next

Cplusplus Programming Lambda Expressions more questions

Which of the following annotation of JAX RS API is....

Which of the following annotation of JAX RS API binds....

Which of these adjacency matrices represents a simple graph?

In regular expressions, which of the following pair of pattern....

Which of the following is the correct equation for DC....

Which matrix is used in the Rho/ Pi steps?

Which of the following is correct expression for RDW index?

The RDW index is expressed by which of the following....

Which of the following statement is invalid with respect to....

Which of the following is not a regular expression?

Chemical Engineering Basics - Part 1 more Online Exam Quiz

Cplusplus Programming Functors

Cplusplus Programming Generators

Cplusplus Programming Inheritance 1

Cplusplus Programming Inheritance 2

Cplusplus Programming Iterators

Cplusplus Programming More Containers

Cplusplus Programming Namespaces 2

Cplusplus Programming Objective

Cplusplus Programming Oops Concept 1

Cplusplus Programming Oops Concept 2