The following quiz question is unclear in my opinion:
I understand that trying to print a float as an integer is illegal. I wanted to try with the string option because it is also said in the notebook that a string should be printed with printf()
using the c_str()
converting function. Of course, it is not illegal but it also isn’t correct.
Maybe changing the string option to printf("I just want to say %s", hello.c_str())
would be more constructive.