What will be the output of the following C++ code? #include <iostream> using namespace std; int main ()
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int x[100];
int main()
{
cout << x[99] << endl;
}
What will be the output of the following C++ code? #include <iostream> using namespace std; int x[100]; int ...
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class A
{
~A(){
cout<<“Destructor called\n”;
}
};
int main()
{
A *a1 = new A();
A *a2 = new A();
return 0;
}
What will be the output of the following C++ code? #include <iostream> using namespace std; class A {
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
class A
{
~A(){
cout<<“Destructor called\n”;
}
};
int main()
{
A a;
return 0;
}
What will be the output of the following C++ code? #include <iostream> using namespace std; class A {
View Question
What will be the output of the following C++ code?
#include <iostream>
using namespace std;
int x = 1;
int main()
{
int x = 2;
{
int x = 3;
cout << ::x << endl;
}
return 0;
}
What will be the output of the following C++ code? #include <iostream> using namespace std; int x = ...
View QuestionWhich of the following is the scope resolution operator?
a) . b) * c) :: d) ~ Answer: c Explanation: ...
View QuestionWhat is static binding?
a) The process of linking the actual code with a procedural call during run-time b) The process of ...
View QuestionWhat is dynamic binding?
a) The process of linking the actual code with a procedural call during run-time b) The process of ...
View Question
In which part of the for loop termination condition is checked?
for(I;II;III)
{IV}
In which part of the for loop termination condition is checked? for(I;II;III) {IV} a) I b) II c) III
View QuestionWhich of the following is an entry-controlled loop?
a) for b) while c) do-while d) both while and for Answer: d Explanation: Both while and for loops are called entry controlled loop ...
View Question