What can be passed by non-type template parameters during compile time?
What is the name of the following operator: ?:
Given the variable declarations:
int a = 0, b = 1, c = -1;
What is the result of the expression:
b + c || !a
The C++ symbol <<
What is the output of the following C++ code?
#include<bits/stdc++.h>
using namespace std;
int main()
{
int i=2, j=2;
while(i+1? --i:j++) {
cout<<i;
}
return 0;
#include < iostream >
using namespace std;
int main(){
int a = 5, b = 6, c, d;
c = a, b;
d = (a, b);
cout << c << 't' << d;
return 0;
}
Which of the following statements about input iterators is correct?
Define an enumerated variable called event of type flags where enumeration type flags has the members first, second and third.
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int myints[] = { 10, 20, 30, 40 };
int* p;
p = find(myints, myints + 4, 30);
--p;
cout << *p << endl;
return 0;
}
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int main()
{
int i;
enum month
{
JAN = 1, FEB, MAR, APR, MAY, JUN, JUL, AUG, SEP, OCT, NOV, DEC
};
for (i = MAR; i <= NOV; i++)
cout << i;
return 0;
}