Find the error in the following code:
The value returned by the library function mktime() on failure is _____.
Which of the following approach is adapted by C++?
To what kind of elements can non-modifying sequence algorithms be applied?
How can a constant function be declared in C++?
Correct syntax for conditional ternary operator ?
What is the output of the following C code?
#include<stdio.h>
int main()
{
if (1, 2, 0)
printf ("True");
else
printf ("False");
}
The process where an object of one class acquires the properties of an object from another class is known as _____.
What will be the output of the following C++ code?
#include <iostream>
#include <string>
#include <cstring>
using namespace std;
int main(int argc, char const *argv[])
{
const char *a = "Hello\0World";
cout << a;
return 0;
}
// passing parameters by reference
#include <iostream>
using namespace std;
void duplicate (int& a, int& b, int& c)
{
a*=2;
b*=2;
c*=2;
}
int main ()
{
int x=1, y=3, z=7;
duplicate (x, y, z);
cout << "x=" << x << ", y=" << y << ", z=" << z;
return 0;
}