Select the correct option to test your answer:
Computer
Plus Plus Miscellaneous
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> #include <string> #include<typeinfo> using namespace std; int main( ) { try { string strg1("Test"); string strg2("ing"); strg1.append(strg2, 4, 2); cout << strg1 << endl; } catch (exception &e) { cout << "Caught: " << e.what() << endl; cout << "Type: " << typeid(e).name() << endl; }; return 0; }
More Computer Questions
Suppose you want to select a database named 'sampledb' as the default database. Which of the following commands do you use?
Which of the following element represents the header of a section or the document and contains a label or other heading information for the related content?
What data structure is ideal for managing a collection of elements with unique keys for quick lookups?
Which of the following is not an adaptive sorting algorithm?
What will be the output of the following C code? #include <stdio.h> int main() { int a = 10, b = 5, c = 5; int d; d = a == (b + c); printf("%d", d); }