What is the output of the following code?
#include #include #include "BMI.h" using namespace std;int main(){string name("John Doe");BMI bmi1(name, 18, 145, 70); name[0] = 'P';cout < "name="" from="" bmi1.getname()="" is="" "="">< bmi1.getname()=""><>cout < "name="" is="" "="">< name=""><>return 0;}
{string name("John Doe");BMI bmi1(name, 18, 145, 70); name[0] = 'P';cout < "name="" from="" bmi1.getname()="" is="" "="">< bmi1.getname()=""><>cout < "name="" is="" "="">< name=""><>return 0;
}
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here