Select the correct option to test your answer:
More Computer Questions
Which mode does not remove trailing spaces when CHAR values are retrieved?
What will be the output of the following C# code? class maths { public maths() { Console.WriteLine("constructor 1 :"); } public maths(int x) { int p = 2; int u; u = p + x; Console.WriteLine("constructor 2: " +u); } } class Program { static void Main(string[] args) { maths k = new maths(4); maths t = new maths(); Console.ReadLine(); } }
What will be the output of the following C++ code? #include <iomanip> #include <iostream> using namespace std; int main() { cout << setprecision(17); double d = 0.1; cout << d << endl; return 0; }
What will be the output of the following C++ code? #include <iostream> #include <string> using namespace std; class A { int a; public: int assign(int i) const { a = i; } int return_value() const { return a; } }; int main(int argc, char const *argv[]) { A obj; obj.assign(5); cout<<obj.return_value(); }
Which of these class is used to create user defined exception?