S
Suzie
How can I say 'I love you.' in C?
Suzie said:How can I say 'I love you.' in C?
Suzie said:How can I say 'I love you.' in C?
#include <stdio.h>
int main(void)
{
puts("I love you.");
return 0;
}
How can I say 'I love you.' in C?
[email protected] said:Careful, the "I love you." might get lost, covered over by the next
prompt, or lost in the filesystem. To avoid undesirable behaviour,
add in a \n to the string.
Careful, the "I love you." might get lost, covered over by the next
prompt, or lost in the filesystem. To avoid undesirable behaviour,
add in a \n to the string.
Walter said:Careful, the "I love you." might get lost, covered over by the next
prompt, or lost in the filesystem. To avoid undesirable behaviour,
add in a \n to the string.
-fat_gay_man-@pieshop$ vi iloveyou.c
#include <stdio.h>
int main(void) {
printf("I Love You");
return 0;
}
:wq
-fat_gay_man-@pieshop$ cc -o iloveyou iloveyou.c
-fat_gay_man-@pieshop$ ./iloveyou
I Love You-fat_gay_man-@pieshop$
Robert said:I'm not sure what you are trying to show here, have you also confused
printf() with puts()? puts() writes a newline character after the
given string, printf() does not. The original program to which Walter
objected used puts().
akarl said:You're missing the point.
The omission of a newline enables us to write
sentences with the output combined with the command line prompt ;-)
If you want a sweet gift for a programming boyfriend, look up the obfuscatedSuzie said:How can I say 'I love you.' in C?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.