What symbol is used to define a preprocessor in C?
What is the correct syntax for defining a destructor of class A?
{
int x = 10, y = 15;
x = x++;
y = ++y;
printf(“%d, %d \n”, x, y);
}
#include <stdio.h>
#include <math.h>
int main ()
{
printf ("%lf", pow (7.0,3));
return 0;
}
Which of the following is not a type of constructor?
#include <bits/stdc++.h>
using namespace std;
int main() {
float m=5,n=2;
float f=m/n;
cout<<f;
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main ()
{
div_t divresult;
divresult = div (38, 5);
printf ("%d\n", divresult.rem);
return 0;
}
Anuja wants to make a function that is not bound to any identifier.which of the following functions should she incorporate in her program?
Which of the following is true about the return type of a function in C?
What will be the output of the following C++ code?
#include <iostream>
#include <algorithm>
using namespace std;
bool myfn(int i, int j)
{
return i < j;
}
int main()
{
int myints[] = {3, 7, 2, 5, 6, 4, 9};
cout << *min_element(myints, myints + 7, myfn) << '\n';
cout << *max_element(myints, myints + 7, myfn) << '\n';
return 0;
}