How to split a string across multiple lines in C

1 Answer

0 votes
#include <stdio.h>     

#define SIZE 32

int main(int argc, char **argv)
{   
	char s[SIZE] = "abc "
	               "defg "
				   "hijk";
	
	puts(s);
	
    return 0;
}

 
/*
run:
   
abc defg hijk

*/

 



answered Apr 4, 2016 by avibootz

Related questions

...