Page 1 of 1

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

Posted: Wed Jul 13, 2022 7:53 pm
by answerhappygod
a) [&X, Y]
b) [X, &y]
c) [X, Y]
d) [&x, &Y]