Explore topic-wise MCQs in C++ Programming.

This section includes 1 Mcqs, each offering curated multiple-choice questions to sharpen your C++ Programming knowledge and support exam preparation. Choose a topic below to get started.

1.

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

A. [&X, Y]
B. [X, &y]
C. [X, Y]
D. [&x, &Y]
Answer» B. [X, &y]