Home / MCQ Bank / Computer
Computer Plus Plus Miscellaneous

In how many ways we can capture the external variables in the lambda expression?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option C • 3

Related Computer Questions

R runs on the ______ operating system. What will be the output of the following Python code? def change(i = 1, j = 2): i = i + j j = j + 1 print(i, j) change(j = 1, i = 2) Which clause is used with an "aggregate functions"? What is the output of the following code? #include<stdio.h> int get_max_element(int *arr,int n) { int i, max_element = arr[0]; for(i = 1; i < n; i++) if(arr[i] > max_element) max_element = arr[i]; return max_element; } int get_min_element(int *arr, int n) { int i, min_element; for(i = 1; i < n; i++) if(arr[i] < min_element) min_element = arr[i]; return min_element; } int main() { int n = 7, arr[7] = {1,1,1,0,-1,-1,-1}; int max_element = get_max_element(arr,n); int min_element = get_min_element(arr,n); printf("%d %d",max_element,min_element); return 0; } The number of arguments taken as input which allocating memory dynamically using malloc() is ______