Is there any difference between :
*p++
*(p++)
What will be the output of the following C++ code?
What header file is used for vector permutation?
Which header file is required to use the forward_list container in C++?
Which of the given escape sequences is used to move the cursor to the previous position on the current line?
What is the output of the following code?
#include<stdio.h>
int main()
{
int x=printf("Abekus ");
printf("%d",x);
return 0;
}
// range-based for loop
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string str {"Hello!"};
for (char c : str)
{
cout << "[" << c << "]";
}
cout << '\n';
}
Which of the following is not the correct way to pass the array to a function
What is the purpose of the mutable keyword in C++?
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main()
{
int first[] = {5, 10, 15, 20, 25};
int second[] = {50, 40, 30, 20, 10};
vector<int> v(10);
vector<int>::iterator it;
sort(first, first + 5);
sort(second, second + 5);
it = set_union(first, first + 5, second, second + 5, v.begin());
cout << int(it - v.begin());
return 0;
}