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 "math.h" using namespace std; double MySqrt(double d) { if (d < 0.0) throw "Cannot take sqrt of negative number"; return sqrt(d); } int main() { double d = 5; cout << MySqrt(d) << endl; }
More Computer Questions
The Search tool is best used when searching for ______ data.
Assignment statements assigning value to local static variables are executed only once.
The log that contains a record of server startups and shutdowns and the messages about exceptional conditions is . . . . . . . .
The key F12 opens a
Which of these method of class StringBuffer is used to find the length of current character sequence?