Which of the following is the scope resolution operator?
In the given options which of them are literals in C.
What function is called when an uncaught exception occurs?
What is the output of the following C code?
What the const keyword do ?
A virtual class is same as which of the following?
What will be the output of the following C++ code?
Assignment statements assigning value to local static variables are executed only once.
What happens if the following line is executed in C and C++?
int *p = malloc(10);
What is the output of the following C++ program?
class square
{
public:
double side1;
double area()
{
return(side1*side1);
}
};
int main(){
double area1=0;
square c1,c2;
cout << "Enter the length of the square" << endl;
cin >> c1.side1;
cout << "The area of the square is : " << c1.area() << endl;
return(0);
}