🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c
Article #1376

Re: p = {1,0,0}

#1376
From: fir
Date: Sun, 08 Nov 2026 03:36
48 lines
2424 bytes
fir pisze:
> 
> No, try it like this first:
> 
>     int A() {B = C()}

no this should be

   int A() {A = C()}

now its ok

if

C(){2}  //in clasic c its colose to int C() {return 2}


then

A()

calls C() and assigns 2 to A so A is 2 now

or take it

  int A(int B) {A = C()*B}

A(3) assigns 6 to a so


main:


C{2} //modue with value 2

int A(int B) {A = C()*B}  //module A definition

A(10)  //asigns  20 to A

int X = A*A;  //assigns 400 to X



in fact tha call C() is ignored as there is no code to execute in C  but 
C value is taken


Technical Details
Message-ID: <11coqot$1236$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me> <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me> <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me> <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me> <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me> <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me> <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me> <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me> <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: fir <profesor.fir@gmail.com>
Newsgroups: comp.lang.c
Subject: Re: p = {1,0,0}
Date: Sun, 8 Nov 2026 04:36:53 +0100
Organization: A noiseless patient Spider
Lines: 48
Message-ID: <11coqot$1236$1@dont-email.me>
References: <11c7f1j$20b9h$1@dont-email.me> <11c7fj6$20gab$1@dont-email.me>
 <11cae5m$318tq$1@dont-email.me> <11calrt$34gq3$1@dont-email.me>
 <11carqs$36m0o$1@dont-email.me> <11cb4hs$3a13l$1@dont-email.me>
 <11ccnkq$3pjhd$1@dont-email.me> <11ccobd$3ps4l$1@dont-email.me>
 <11cctee$3rtjh$1@dont-email.me> <11ccu0t$3s54f$1@dont-email.me>
 <11ccv4n$3sjn5$1@dont-email.me> <11cd05l$3t1er$1@dont-email.me>
 <11cd0q3$3ta28$1@dont-email.me> <11cd1vs$3tpfp$1@dont-email.me>
 <11cnve1$3ofei$1@dont-email.me> <11co8d4$3rpvm$1@dont-email.me>
 <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 08 Nov 2026 03:37:02 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="34918"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18QfM8BuoFE0OEHqsuq6Choxg0NZN5ssc4="; posting-host="9324e5ef4bfce41eb124a57241b8befc"
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101
 Firefox/140.0 SeaMonkey/2.53.24
Cancel-Lock: sha1:wVpcYqU0Ui6Ysg2Z3xXInqJpmx4= sha256:UTmGKYke06BspFKa7dIbD+5obNKNwL5mqutdakFXVAI=
	sha1:N7zQNJUmAlDV4QY7mISVA3aMoOw= sha256:jFq62HB6qqBSjzy6QCBNPSdqKzn6I4DUNPsmygTmLmA=
In-Reply-To: <14be9ea5-918f-5871-1bba-11e29e6e25d5@gmail.com>