Home / MCQ Bank / Computer
Computer Standard Template Library (Stl) In C Plus Plus Difficulty: Medium

Which algorithm in C++ STL is used to count the number of occurrences of a value in a range?

Select the correct option to test your answer:

More Computer Questions

What is the time complexity of the following recursive implementation used to find the length of the string? #include<stdio.h> int recursive_get_len(char *s, int len) { if(s[len] == 0) return 0; return 1 + recursive_get_len(s, len+1); } int main() { char *s = "abcdef"; int len = recursive_get_len(s,0); printf("%d",len); return 0; } Which of the following operation is illegal in structures? What will be the output of the following C code? #include <stdio.h> void m(int *p, int *q) { int temp = *p; *p = *q; *q = temp; } void main() { int a = 6, b = 5; m(&a, &b); printf("%d %d\n", a, b); } Which of the following specifies the length of the data being returned? Which of the following is a method to create a new table in MS Access?