Select the correct option to test your answer:
More Computer Questions
What will be the output of the following C++ code? #include <vector> #include <iostream> #include <typeinfo> #include <stdexcept> using namespace std; int main() { vector<int> vec; vec.push_back(10); int i = vec[100]; try { i = vec[0]; cout << i << endl; } catch (exception &e) { cout << "Caught: " << e.what( ) << endl; cout << "Type: " << typeid( e ).name( ) << endl; } catch (...) { cout << "Unknown exception: " << endl; } return 0; }
What is the extension of java code files?
The DECIMAL used for expressions containing only exact values with fractional part is of digit precision . . . . . . . .
What will be the output of the following C code? #include <stdio.h> int main() { FILE *fp = stdout; int n; fprintf(fp, "%d ", 45); fflush(stdout); fprintf(stderr, "%d", 65); return 0; }
If a class defines the __str__(self) method, for an object obj for the class, you can use which command to invoke the __str__ method.