How to make a new line in this C printf code? -
this question has answer here:
printf("%c trying forget love trying remember never knew \n\n",3);
become in vb.net:
printf("%c trying forget love trying to" & "remember never knew \n\n",3);
we add next string on new line.... how connect string in c language.
two ways:
printf("%c trying forget love trying " "remember never knew \n\n",3);
string literals can written multiple quoted parts. still 1 string. way can have indentation , comments in between.
printf("%c trying forget love trying \ remember never knew \n\n",3);
you can split string literal having backslash last char in line. there ne no newline in resulting string, if want use \n\
@ end. if indent 2nd line, whitespace go string, not want.
Comments
Post a Comment