What should this code output? Oddly enough, it compiles.
#include <iostream> int main() { std::cout << '/dd1s'; } What should this code output? Oddly enough, it compiles.
#include <iostream> int main() { std::cout << '/dd1s'; } Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .
'/dd1s' is a multi-character (multichar) literal , whose type is int .
Depending on the compiler implementation, the '/ dd1s' is converted to an int (for example, through overflow), and this int is output to stdout.
'\0777' - Abyx'\xdd1' - AbyxSource: https://ru.stackoverflow.com/questions/483529/
All Articles