Warning: mysqli::__construct(): (HY000/1203): User howardkn already has more than 'max_user_connections' active connections in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\includes\artfuncs.php on line 21
Failed to connect to MySQL: (1203) User howardkn already has more than 'max_user_connections' active connections
Warning: mysqli::query(): Couldn't fetch mysqli in D:\Inetpub\vhosts\howardknight.net\al.howardknight.net\index.php on line 66
Article <vrml51$7i0j$1@dont-email.me>
Deutsch   English   Français   Italiano  
<vrml51$7i0j$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: DFS <nospam@dfs.com>
Newsgroups: comp.lang.c
Subject: Re: Suggested method for returning a string from a C program?
Date: Sat, 22 Mar 2025 11:31:48 -0400
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vrml51$7i0j$1@dont-email.me>
References: <vrd77d$3nvtf$2@dont-email.me>
 <87a59hvgyk.fsf@nosuchdomain.example.com> <vrdi0g$47cb$3@dont-email.me>
 <mm72bl-1o2.ln1@otis.foo> <VPzDP.1208307$_N6e.379425@fx17.iad>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sat, 22 Mar 2025 16:31:47 +0100 (CET)
Injection-Info: dont-email.me; posting-host="caec85518f16b7293c9106934e7d3d02";
	logging-data="247827"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18Q2v2z/0vGcGShR7uA0KKy"
User-Agent: Betterbird (Windows)
Cancel-Lock: sha1:ZFE+4LwyAGeAIknSNU1J46vO8TY=
Content-Language: en-US
In-Reply-To: <VPzDP.1208307$_N6e.379425@fx17.iad>

On 3/22/2025 10:30 AM, Scott Lurndal wrote:

> And here's mine.
> 
> int
> main(int argc, const char **argv)
> {
>     unsigned int n;
>     scanf("%u", &n);
>     printf("%u ", n);
>     do {
>        n = (n & 1u) ? n * 3u + 1u : n >> 1u;
>        printf("%u ", n);
>     } while (n != 1u);
>     putchar('\n');
>     return 0;
> }


Wrong answer on 5 of 14 CSES tests.