Is is "Hallo" " Welt"
equivalent to "Hallo Welt"
?
Should is the following code throw any error or warning at compile time?
#include <iostream>
void print(std::string s) {
std::cout << s;
}
int main() {
print("Hallo" " Welt");
}
Using icc 15.0.3
and -Wall no error or warning is thrown and it prints out Hallo Welt
.
The background of my question is that clang-format has broken a long string into two, like in the example above.
What happens in C
using char*
?