Vidyalelo
C++ Programming · Q232

C++ miscellaneous

Programming · C++ Programming · question 232

Q232

What will be the output of the following C++ code? #include #include #include using namespace std; int main () string mystr; float price = 0; int quantity = 0; cout > price; cout > quantity; cout << "Total price: " << price * quantity << endl; return 0;

A.
50
B.
Depends on value you enter
Answer
C.
Error
D.
100

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board