C++ is a middle-level type of language.
What is used to access a function from one source file in another?
Which exception is thrown if the type casting is not done properly?
In which numbering system can the binary number 1011011111000101 be easily converted to?
What is the functionality of the following algorithm?
What will be the output of the following C++ code?
#include <iostream>
#include <any>
using namespace std;
int main()
{
float val = 5.5;
any var(val);
cout << var.type().name() << endl;
return 0;
}
What happens if you declare a variable and use it before initializing it?
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
#define PI 3.14159
int main ()
{
float r = 2;
float circle;
circle = 2 * PI * r;
cout << circle;
return 0;
}
Which of the following statements about input iterators is correct?
What will be the output of the following code:
#include <iostream>
using namespace std;
int main ()
{
int firstvalue, secondvalue;
int * mypointer;
mypointer = &firstvalue;
*mypointer = 10;
mypointer = &secondvalue;
*mypointer = 20;
cout << firstvalue << '\n';
cout << secondvalue << '\n';
return 0;
}