Which of the following C library functions returns the current time in UTC format?
What is the purpose of the C++ standard stream object 'clog'?
#include < iostream >
using namespace std;
int main()
{
int a = 5, b = 6, c;
c = (a > b) ? a : b;
cout << c;
return 0;
}
What is the characteristic of a destructor?
What are the references in C++?
Which of the following demonstrates Polymorphism?
Predict the functionality of the following algorithm:
What is name mangling in C++?
What is the output of the program given below?
#include <stdio.h>
#include <stdlib.h>
int main()
{
int* cd, a, b;
a = 3;
b = 15;
cd = &a; printf("%d", *cd);
cd = &b; printf("%d", *cd);
return 0;
}
What will be the output of the following C++ code?
#include <vector>
#include <algorithm>
#include <iostream>
using namespace std;
int main()
{
vector<int> v;
for(int i=0; i<10; i++)
v.push_back(i+1);
for(int i=0; i<10; i++)
cout << v[i] << " ";
cout << endl;
random_shuffle(v.begin(), v.end());
for(int i=0; i<10; i++)
cout << v[i] << " ";
return 0;
}