How to split a string across multiple lines in C++

1 Answer

0 votes
#include <iostream>

using namespace std;

#define SIZE 32

int main()
{
	char s[SIZE] = "abc "
		           "defg "
		           "hijk";

	cout << s << endl;

	return 0;
}

/*
run:

abc defg hijk

*/

 



answered Apr 4, 2016 by avibootz
...