Solved

Which Statements Convert the String "10" to the Integer Value

Question 4

Multiple Choice

Which statements convert the string "10" to the integer value 10?


A) istringstream istr("10") ; int x; istr >> x;
B) ostringstream ostr("10") ; int x; ostr >> x;
C) int x = stoi("10") ;
D) int x = str("10") :
E) None of the above

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions