user923005 said:
> On Jun 20, 12:28 pm, "Army1987" <please....@for.it> wrote:
>> "user923005" <dcor...@connx.com> ha scritto nel
>>
messaggionews:1182364457.789676.147790@p77g2000hsh .googlegroups.com...>
>> /* After removing the outrageous errors: */
>> > #include <stdio.h>
>> > int main(void) {
>> > const unsigned long long a = 38, b = 13;
>> > unsigned long long c;
>> > c = a * (1ULL<<b) * 32000ULL;
>> > printf("%llu", c);
>>
>> You'd better have a newline at the end of the output.
>
> Why?
Good programming practice. If the output is redirected into a file, that
file can subsequently be used as valid text input into a C program,
eliminating one point of reliance on implementation-defined behaviour.
4.9.2: "A text stream is an ordered sequence of characters composed into
lines, each line consisting of zero or more characters plus a
terminating new-line character. Whether the last line requires a
terminating new-line character is implementation-defined."
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at the above domain, - www.