Select the correct option to test your answer:
More Computer Questions
What does the following piece of code do? public void func(Tree root) { System.out.println(root.data()); func(root.left()); func(root.right()); }
To which type of class, We can apply RTTI?
What will be the output of the following C++ code? #include <iostream> using namespace std; class number { int i; public: int geti(); void puti(int j); }; int number::geti() { return i; } void number::puti(int j) { i = j; } int main() { number s; s.puti(10); cout << s.geti( ); return 0; }
What will be the output of the following C code? #include <stdio.h> int main() { int *ptr, a = 10; ptr = &a; *ptr += 1; printf("%d,%d/n", *ptr, a); }
What is the purpose of the 'std::logic_error' class in C++ exception handling?